Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 67541 invoked from network); 10 Mar 2009 02:36:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2009 02:36:11 -0000 Received: (qmail 23287 invoked by uid 500); 10 Mar 2009 02:36:04 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 23246 invoked by uid 500); 10 Mar 2009 02:36:04 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 23235 invoked by uid 99); 10 Mar 2009 02:36:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 19:36:04 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yangzhou.ebay@gmail.com designates 209.85.217.170 as permitted sender) Received: from [209.85.217.170] (HELO mail-gx0-f170.google.com) (209.85.217.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 02:35:58 +0000 Received: by gxk18 with SMTP id 18so3022140gxk.5 for ; Mon, 09 Mar 2009 19:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=FbusAOa4PUCqmY1+lx4GPzf0p+uJ5xvgPkCy2/Jv7KA=; b=A86DVGZLxq1PyqtBbzfAOISPKLEnk8r4NHGNfXuJD9OAPCo4RkEKOG2jO6UL9Llq0f IYYXI9L9/lgEdBx6NfLHl72LR0U2OaWGbhoN3CEeVbb2CLuGZpNinAIpeZ3PzLhkA7qO qc+jKBgEBB2Fivy8wxy9WzGutnR8aHyK282Hk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=cqugYUWUsPxshHjYhN8Q0WMg0c/fPSWCyVs+UkPe+DU4B0f1uWrpd1anJLYWjXpEXX EwfdpgaMjlua3+5aiickMGqVvCEPhgDeGW6FuviHDmKRZGwtXoAHPj1SnEYitPPaiE88 EUUlBoGPR7BOmu5uPaHPiH3Rzanfm0RhPIUiU= MIME-Version: 1.0 Received: by 10.142.77.7 with SMTP id z7mr2834796wfa.18.1236652536525; Mon, 09 Mar 2009 19:35:36 -0700 (PDT) In-Reply-To: <49b53b7b.044e6e0a.0522.61cf@mx.google.com> References: <49b53b7b.044e6e0a.0522.61cf@mx.google.com> Date: Tue, 10 Mar 2009 10:35:36 +0800 Message-ID: <2970f47f0903091935k4b03ce23l6522ce3286269c4f@mail.gmail.com> Subject: Re: how to upload files by web page From: Yang Zhou To: core-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001636e90f6c2673e90464ba9b4e X-Virus-Checked: Checked by ClamAV on apache.org --001636e90f6c2673e90464ba9b4e Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Hi, I have done that before. My solution is : 1. submit some FTP/SFTP/GridFTP urls of what you want to upload 2. backend service will fetch those files/directories from FTP to HDFS directly. Of course you can upload those files to the web server machine and then mov= e them to HDFS. But since Hadoop is designed to process vast amounts of data, I do think my solution is more efficient. :-) You can find how to make directory and save files to HDFS in the source cod= e of "org.apache.hadoop.fs.FsShell". 2009/3/9 > > > Hi, all, > > I=A1=AFm new to HDFS and want to upload files by JSP. > > Are there some APIs can use? Are there some demo? > > Thanks for your help=A3=BA=A3=A9 > > --001636e90f6c2673e90464ba9b4e--