Return-Path: Delivered-To: apmail-hadoop-general-archive@minotaur.apache.org Received: (qmail 82627 invoked from network); 9 Jul 2010 09:18:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Jul 2010 09:18:49 -0000 Received: (qmail 50255 invoked by uid 500); 9 Jul 2010 09:18:48 -0000 Delivered-To: apmail-hadoop-general-archive@hadoop.apache.org Received: (qmail 49961 invoked by uid 500); 9 Jul 2010 09:18:45 -0000 Mailing-List: contact general-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@hadoop.apache.org Delivered-To: mailing list general@hadoop.apache.org Received: (qmail 49953 invoked by uid 99); 9 Jul 2010 09:18:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 09:18:44 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yhemanth@gmail.com designates 74.125.83.176 as permitted sender) Received: from [74.125.83.176] (HELO mail-pv0-f176.google.com) (74.125.83.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 09:18:38 +0000 Received: by pvc21 with SMTP id 21so1455434pvc.35 for ; Fri, 09 Jul 2010 02:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=4QbP/Uuko7zzTV4hPAJXYR4Jfn/gSx1Aiu4QEob5dSw=; b=XFWxqPi+qvBVWL9qre2pffb7ukGxmbH5GJ3WAHe3KvvqzmDshxhyf1s5eSMH2MJ27B 9cWMxcHMS9N9bXxc0jaVoQaSNW4WH86alkmKSgmVJGFhaFfMvm9a7Pf8HOjwyB+l8qvS kRZ0n8Opye5Dl1N81s5Mtmpd+FpzwtB9z5IZQ= 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:content-transfer-encoding; b=mTKK5SEIPQnriTpx8oXrJpvfDnCYfUqGoAp3IMXnx2Uie1GdE7BnCHVKNLBV3iotUS ZnxKwWYZ6b3UgaY3V/lNPGJLpN7AMYxkeM4sARjL14soEAe/8vKFEKtPyVzbY8BqDGrT Vk0BuxyUHveSr5i/S+u991O36jgr1/fu1huUo= MIME-Version: 1.0 Received: by 10.142.174.4 with SMTP id w4mr4257090wfe.160.1278667037172; Fri, 09 Jul 2010 02:17:17 -0700 (PDT) Received: by 10.142.188.19 with HTTP; Fri, 9 Jul 2010 02:17:17 -0700 (PDT) In-Reply-To: <4C36E730.1060004@verchaska.com> References: <4C35877A.3090705@verchaska.com> <354823AA-8AF3-4FF4-9606-EAAD236E1835@linkedin.com> <4C36E730.1060004@verchaska.com> Date: Fri, 9 Jul 2010 14:47:17 +0530 Message-ID: Subject: Re: jni files From: Hemanth Yamijala To: general@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Amit, On Fri, Jul 9, 2010 at 2:39 PM, amit kumar verma wro= te: > =A0Hi Hemant, > > The version are same as copied it to all client machine. > > I think I got a solution. As I read more about hadoop and JNI, I learned > that I need to copy jni files to > HADOOP_INSTALLATION_DIR//lib/native/Linux-xxx-xxx. I though my linux mach= ine > is Linux-i386-32. then I found in "org.apache.hadoop.util.PlatformName" > class gives you your machine type and its Linux-amd64-64 and asa I copied > jni files to this directory error are not coming. > > Though full code is still not running as I developed the application usin= g > java.file class and i am still thinking how to make changes so that it ca= n > access hdfs !!! =A0Do i need to change my all API with respect to HDFS an= d > rewrite using hadoop fs or ??!!! > To access files from HDFS, you should use the Hadoop FileSystem API. Please take a look at the Javadoc and also a tutorial such as this: http://developer.yahoo.com/hadoop/tutorial/module2.html#programmatically for more information. > It will be great if someone advice on this. > > > > Thanks, > Amit Kumar Verma > Verchaska Infotech Pvt. Ltd. > > > > On 07/09/2010 02:04 PM, Hemanth Yamijala wrote: >> >> Hi, >> >> Possibly another silly question, but can you cross check if the >> versions of Hadoop on the client and the server are the same ? >> >> Thanks >> hemanth >> >> On Thu, Jul 8, 2010 at 10:57 PM, Allen Wittenauer >> =A0wrote: >>> >>> On Jul 8, 2010, at 1:08 AM, amit kumar verma wrote: >>> >>>> =A0 =A0 DistributedCache.addCacheFile("hdfs://* >>>> =A0 =A0 /192.168.0.153:50075*/libraries/mylib.so.1#mylib.so", conf); >>> >>> Do you actually have asterisks in this? =A0If so, that's the problem. >>> >>> >