Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33386422B for ; Mon, 9 May 2011 18:29:25 +0000 (UTC) Received: (qmail 60932 invoked by uid 500); 9 May 2011 18:29:24 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 60833 invoked by uid 500); 9 May 2011 18:29:24 -0000 Mailing-List: contact hdfs-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-user@hadoop.apache.org Delivered-To: mailing list hdfs-user@hadoop.apache.org Received: (qmail 60824 invoked by uid 99); 9 May 2011 18:29:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 18:29:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of libo.1024.com@gmail.com designates 209.85.216.169 as permitted sender) Received: from [209.85.216.169] (HELO mail-qy0-f169.google.com) (209.85.216.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 18:29:15 +0000 Received: by qyk2 with SMTP id 2so1485065qyk.14 for ; Mon, 09 May 2011 11:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=u8mQGYRjACW3qSytNfhvQNRRuErEgdOp9VthRX7Q9Fk=; b=gACZ6IS11mds9f3slOTpR5bZOlnUfcnz6j/iV5TMYpLWvcRD88VcRtwlpeDP69uFTC 7+VySvQXnjb1oVrzVIrA/+u+gVlpW/3s3oh/uTo/7bJwRd0RA33cl366Q2Qcqp8xAD5/ bf8gBhs4KkaqEkW0XGnp6IRY2mo4Ynk68W+f8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=SDR/7ET6FvZvVl10Npo5gT2vXJ9zQmYP+dqovmPcVj9jVTHC6nlexB8CSqIVzj5LXY 5yf+aVCPmZhPd9aZWy3r5wITj3U5EhQxgKu/vOlTju7qavaULPooLIlpOn6mhS5jtC6D heutTM7KcxgrI1vF5VD5W/TJNftKVQ+8HJbGs= Received: by 10.224.176.67 with SMTP id bd3mr6702151qab.36.1304965734354; Mon, 09 May 2011 11:28:54 -0700 (PDT) Received: from [129.21.84.71] (bxl4074.rit.edu [129.21.84.71]) by mx.google.com with ESMTPS id m11sm5131454qcu.21.2011.05.09.11.28.52 (version=SSLv3 cipher=OTHER); Mon, 09 May 2011 11:28:52 -0700 (PDT) Message-ID: <4DC83253.4010404@gmail.com> Date: Mon, 09 May 2011 14:28:35 -0400 From: Bo Li User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: hdfs-user@hadoop.apache.org Subject: Re: Developing Java program References: <4DC44F65.203@gmail.com> <4DC580E4.2080207@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thank you very much, Harsh! Bo On 5/7/2011 4:32 PM, Harsh J wrote: > I think they should be hadoop-common-0.21.0.jar (This has FileSystem > in it) and hadoop-hdfs-0.21.0.jar (Actual HDFS impl. classes) > > (both ought to be available in the root of the distribution, scratch > my earlier hint of within directories, those contain sources and > binaries). > > On Sat, May 7, 2011 at 10:57 PM, Bo Li wrote: >> Hi Harsh, >> >> Thank you very much for your reply. I am using 0.21.x. I have already >> included those two but still the problem is there. Could you specify the >> name of those two jar files so that I can confirm I was not using the wrong >> files. >> >> Best Regards, >> Bo >> >> On 5/6/2011 4:39 PM, Harsh J wrote: >>> Hello Bo, >>> >>> What version of Hadoop are you using? >>> >>> In case of 0.20.x, use the single hadoop-*-core.jar available under >>> the root of the distribution's directory. >>> In case of 0.21.x, you will need to use two separate jars (from >>> common/ and hdfs/ folders of the distribution). >>> >>> On Sat, May 7, 2011 at 1:13 AM, Bo Li wrote: >>>> Hi All, >>>> >>>> I need some help for my project. I plan to develop a Java program to >>>> manipulate remote HDFS. The code cannot pass the compilation with >>>> throwing >>>> some errs like "cannot find symbol FileSystem". I know that may be >>>> because I >>>> do not set .jar file into class path. But the thing is I do not know >>>> which >>>> jar file should I put in and where I could find that file(s). Could >>>> anyone >>>> help? Thank you very much! >>>> >>>> Best Regards, >>>> Bo >>>> >>> > >