Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 1610 invoked from network); 10 Dec 2010 00:26:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Dec 2010 00:26:48 -0000 Received: (qmail 1945 invoked by uid 500); 10 Dec 2010 00:26:45 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 1905 invoked by uid 500); 10 Dec 2010 00:26:45 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 1897 invoked by uid 99); 10 Dec 2010 00:26:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Dec 2010 00:26:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mathias.herberts@gmail.com designates 209.85.212.178 as permitted sender) Received: from [209.85.212.178] (HELO mail-px0-f178.google.com) (209.85.212.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Dec 2010 00:26:38 +0000 Received: by pxi9 with SMTP id 9so1140873pxi.37 for ; Thu, 09 Dec 2010 16:26:18 -0800 (PST) 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=epnpH0m8J3s4qfeuD3zQ4AFjdSW42CFeMJf9IwjKYl8=; b=usplPQLNJgH4I791uVSYpNfzAXmW/elkE2Eg80eSVeC+8LTtL8Fz7e/LO80UhBdLs3 cahzU9ZLPq2Jwe2YQMIuewS6YiMGhpghl/SboV+N4LVDuOSJQ/4gctg/I7U6U8N950HW ZWF2Le04JBG0VX/yY95/d9Ko6Z9Q5vkXH61fU= 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=fAtlDXz3Jm11GEBpTG917NnQSFgaed4zSILusoDplT0nPeQZMykDIl+UsGCHNjIcVj xRpDE0b/UW5UVRgzOsrml90Q5g5FezH+PtIsOW2eZVYyq+Ao/dNinwyLaCmemAlFJ77s 2+3gRQgaLspAdpIL8763RpTDLeXXa6K0DqPyM= MIME-Version: 1.0 Received: by 10.143.157.5 with SMTP id j5mr30170wfo.72.1291940778161; Thu, 09 Dec 2010 16:26:18 -0800 (PST) Received: by 10.143.34.11 with HTTP; Thu, 9 Dec 2010 16:26:18 -0800 (PST) In-Reply-To: References: Date: Fri, 10 Dec 2010 01:26:18 +0100 Message-ID: Subject: Re: Jcuda on Hadoop From: Mathias Herberts To: common-user@hadoop.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Put the native libs (.so) with the other common libs that hadoop already has (libhadoop, libcompression, ...). Or put them in a specific 'lib/native' in your job jar and set 'java.library.path' to 'job.local.dir'/../jars/lib/native in your MR job. Mathias. On Thu, Dec 9, 2010 at 23:17, He Chen wrote: > I am still in the test stage. I mean I only start one JobTracker and one > TaskTracker. > I copied all jcuda.*.jar into =C2=A0HADOOP_HOME/lib/ > > from the ps aux|grep java > > I can confirm the JT and TT processes all contain the jcuda.*.jar files > > On Thu, Dec 9, 2010 at 4:05 PM, Mathias Herberts > wrote: > >> You need to have the native libs on all tasktrackers and have >> java.library.path correctly set. >> On Dec 9, 2010 11:01 PM, "He Chen" wrote: >> > Hello everyone, I 've got a problem when I write some Jcuda program ba= sed >> on >> > Hadoop MapReduce. I use the jcudaUtill. The KernelLauncherSample can b= e >> > successfully executed on my worker node. However, When I submit a prog= ram >> > containing jcuda to Hadoop MapReduce. I got following errors. Any repl= y >> will >> > be appreciated! 10/12/09 15:41:39 INFO mapred.JobClient: Running job: >> > job_201012091523_0002 10/12/09 15:41:40 INFO mapred.JobClient: map 0% >> reduce >> > 0% 10/12/09 15:41:53 INFO mapred.JobClient: Task Id : >> > attempt_201012091523_0002_m_000000_0, Status : FAILED Error: Could not >> load >> > native library attempt_201012091523_0002_m_000000_0: [GC >> > 7402K->1594K(12096K), 0.0045650 secs] >> attempt_201012091523_0002_m_000000_0: >> > [GC 108666K->104610K(116800K), 0.0106860 secs] >> > attempt_201012091523_0002_m_000000_0: [Full GC 104610K->104276K(129856= K), >> > 0.0482530 secs] attempt_201012091523_0002_m_000000_0: Error while load= ing >> > native library with base name "JCudaDriver" >> > attempt_201012091523_0002_m_000000_0: Operating system name: Linux >> > attempt_201012091523_0002_m_000000_0: Architecture : amd64 >> > attempt_201012091523_0002_m_000000_0: Architecture bit size: 64 10/12/= 09 >> > 15:42:00 INFO mapred.JobClient: Task Id : >> > attempt_201012091523_0002_m_000000_1, Status : FAILED Error: Could not >> load >> > native library attempt_201012091523_0002_m_000000_1: [GC >> > 7373K->1573K(18368K), 0.0045230 secs] >> attempt_201012091523_0002_m_000000_1: >> > Error while loading native library with base name "JCudaDriver" >> > attempt_201012091523_0002_m_000000_1: Operating system name: Linux >> > attempt_201012091523_0002_m_000000_1: Architecture : amd64 >> > attempt_201012091523_0002_m_000000_1: Architecture bit size: 64 It loo= ks >> > like The jcuda library file can not be sucessfully loaded. Actually, I >> tried >> > many combinations. 1) I include all the jcuda library files in my >> > TaskTracker's classpath, and also include jcuda library file into my >> > mapreduce program. 2) TaskTracker's classpath w/o jcuda library, but m= y >> > program contains them 3) TaskTracker's classpath w/ jcuda librara, but= my >> > program w/o them All of them report the same error above. >> >