Return-Path: X-Original-To: apmail-giraph-user-archive@www.apache.org Delivered-To: apmail-giraph-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D99C6104A7 for ; Thu, 20 Feb 2014 19:21:40 +0000 (UTC) Received: (qmail 76881 invoked by uid 500); 20 Feb 2014 19:21:31 -0000 Delivered-To: apmail-giraph-user-archive@giraph.apache.org Received: (qmail 76638 invoked by uid 500); 20 Feb 2014 19:21:26 -0000 Mailing-List: contact user-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@giraph.apache.org Delivered-To: mailing list user@giraph.apache.org Received: (qmail 76585 invoked by uid 99); 20 Feb 2014 19:21:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Feb 2014 19:21:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Stefan.Beskow@sas.com designates 216.32.181.186 as permitted sender) Received: from [216.32.181.186] (HELO ch1outboundpool.messaging.microsoft.com) (216.32.181.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Feb 2014 19:21:18 +0000 Received: from mail63-ch1-R.bigfish.com (10.43.68.239) by CH1EHSOBE007.bigfish.com (10.43.70.57) with Microsoft SMTP Server id 14.1.225.22; Thu, 20 Feb 2014 19:20:57 +0000 Received: from mail63-ch1 (localhost [127.0.0.1]) by mail63-ch1-R.bigfish.com (Postfix) with ESMTP id 9B0691A025F for ; Thu, 20 Feb 2014 19:20:57 +0000 (UTC) X-Forefront-Antispam-Report: CIP:149.173.6.148;KIP:(null);UIP:(null);IPV:NLI;H:mercav06d.na.sas.com;RD:mercav06d.na.sas.com;EFVD:NLI X-SpamScore: -4 X-BigFish: S-4(z579ehz98dI9371IfecI7eaI542I1432I4015Izz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzz1de098h8275bh8275dh1de097h186068hz2fh109h2a8h839h944hcf6hd24hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h1b0ah224fh1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1fe8h1ff5h2216h22d0h2336h2461h2487h24ach24d7h2516h2545h255eh1c22i9a9j1155h) Received-SPF: pass (mail63-ch1: domain of sas.com designates 149.173.6.148 as permitted sender) client-ip=149.173.6.148; envelope-from=Stefan.Beskow@sas.com; helo=mercav06d.na.sas.com ;d.na.sas.com ; Received: from mail63-ch1 (localhost.localdomain [127.0.0.1]) by mail63-ch1 (MessageSwitch) id 1392924055126445_14069; Thu, 20 Feb 2014 19:20:55 +0000 (UTC) Received: from CH1EHSMHS025.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.245]) by mail63-ch1.bigfish.com (Postfix) with ESMTP id 112E4220090 for ; Thu, 20 Feb 2014 19:20:55 +0000 (UTC) Received: from mercav06d.na.sas.com (149.173.6.148) by CH1EHSMHS025.bigfish.com (10.43.70.25) with Microsoft SMTP Server (TLS) id 14.16.227.3; Thu, 20 Feb 2014 19:20:53 +0000 X-TM-IMSS-Message-ID: Received: from MERCMBX30D.na.SAS.com ([10.36.10.221]) by mercav06d.na.sas.com ([10.36.10.11]) with ESMTP (TREND IMSS SMTP Service 7.1; TLSv1/SSLv3 AES128-SHA (128/128)) id eec2399d0006ca3d ; Thu, 20 Feb 2014 14:20:52 -0500 Received: from MERCMBX25R.na.SAS.com (10.16.10.6) by MERCMBX30D.na.SAS.com (10.36.10.221) with Microsoft SMTP Server (TLS) id 15.0.775.38; Thu, 20 Feb 2014 14:20:52 -0500 Received: from MERCMBX25R.na.SAS.com ([fe80::dc7a:4da6:4fa5:7efc]) by MERCMBX25R.na.SAS.com ([fe80::dc7a:4da6:4fa5:7efc%16]) with mapi id 15.00.0775.031; Thu, 20 Feb 2014 14:20:52 -0500 From: Stefan Beskow To: "user@giraph.apache.org" Subject: RE: Problem running SimpleShortestPathsComputation on CDH5 with Hadoop 2.2.0 Thread-Topic: Problem running SimpleShortestPathsComputation on CDH5 with Hadoop 2.2.0 Thread-Index: Ac8ttz2bT7xNDUaMS0W2ILSgsy2ZwwALituAAAjwMtAAIfWqgAAIcWaA Date: Thu, 20 Feb 2014 19:20:51 +0000 Message-ID: <41f8cae3775840a3b4cb7375ac1a74e3@MERCMBX25R.na.SAS.com> References: <50d24338c9164ee2929995e22f532a96@MERCMBX25R.na.SAS.com> <32c1ea4f88ec4fd2bc0815b012c0de48@MERCMBX25R.na.SAS.com> <2797654.9KU3s8WQsB@pc509946> In-Reply-To: <2797654.9KU3s8WQsB@pc509946> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.28.11.233] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sas.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-Virus-Checked: Checked by ClamAV on apache.org Hi Alex. I tried that, but unfortunately in my case it didn't work so I'm still gett= ing this exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/girap= h/yarn/GiraphYarnTask Caused by: java.lang.ClassNotFoundException: org.apache.giraph.yarn.GiraphY= arnTask at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: org.apache.giraph.yarn.GiraphYarnTask. Prog= ram will exit. In case I missed something here is what I did: 1. Copied giraph-examples-1.1.0-SNAPSHOT-for-hadoop-2.2.0-cdh5.0.0-beta-2-j= ar-with-dependencies.jar to a directory called /users/stbesk/snapshot_from_= git/jars 2. Updated hadoop classpath: export HADOOP_CLASSPATH=3D/users/stbesk/snapsh= ot_from_git/jars 3. Updated command to only use giraph-examples-1.1.0-SNAPSHOT-for-hadoop-2.= 2.0-cdh5.0.0-beta-2-jar-with-dependencies.jar since it contains all depende= ncies: hadoop jar /users/stbesk/snapshot_from_git/jars/giraph-examples-1.1.0-SNAPS= HOT-for-hadoop-2.2.0-cdh5.0.0-beta-2-jar-with-dependencies.jar=20 org.apache.giraph.GiraphRunner org.apache.giraph.examples.SimpleShortestPat= hsComputation=20 -vif org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputForma= t=20 -vip /user/stbesk/input/tiny-graph.txt=20 -vof org.apache.giraph.io.formats.IdWithValueTextOutputFormat=20 -op /user/stbesk/output/shortestpathsC2=20 -w 2=20 -ca giraph.SplitMasterWorker=3Dtrue=20 -ca giraph.zkList=3Dlocalhost:2181=20 -yj giraph-examples-1.1.0-SNAPSHOT-for-hadoop-2.2.0-cdh5.0.0-beta-2-jar-wit= h-dependencies.jar Did I miss something? Thanks. Stefan -----Original Message----- From: Alexandre Fonseca [mailto:alexandrejorgefonseca@gmail.com]=20 Sent: Thursday, February 20, 2014 1:11 PM To: user@giraph.apache.org Subject: Re: Problem running SimpleShortestPathsComputation on CDH5 with Ha= doop 2.2.0 The yarn version of Giraph is quite finicky when it comes to detecting the = giraph jar. When it can't find the jar on the new containers you get that e= xception. After much experimentation I've had great success with the following (subst= itute paths and filenames where needed): HADOOP_CLASSPATH=3D/data/b.ajf/giraph hadoop jar /data/b.ajf/giraph/giraph.= jar org.apache.giraph.GiraphRunner org.apache.giraph.examples.SimpleShortes= tPathsComputation -vip /user/b.ajf/ssp_input -vif org.apache.giraph.io.form= ats.JsonLongDoubleFloatDoubleVertexInputFormat -op /user/b.ajf/ssp_output -= vof org.apache.giraph.io.formats.IdWithValueTextOutputFormat -yj giraph.jar The argument supplied to -yj must be only the name of the jar (no directori= es). The jar must be directly accessible from the current classpath or subd= irectories (but it doesn't work if you give the full path of the jar, e.g, = HADOOP_CLASSPATH=3D/data/b.ajf/giraph/giraph.jar). Also, if you use giraph-examples-with-dependencies you don't need the other= one as the examples-with-dependencies already contain the core. Cheers, Alex On Thursday, February 20, 2014 05:42:45 PM Stefan Beskow wrote: > Thanks Roman for getting back to me so quickly. I checked with=20 > Cloudera and they have a maven repository for CDH5 (version=20 > 2.2.0-cdh5.0.0-beta-2) as shown below: >=20 > > cloudera > =20 > https://repository.cloudera.com/artifactory/cloudera-repos/ > >=20 > I added that to the pom.xml file and ran a new build using the=20 > following > command: >=20 > mvn -Phadoop_yarn -Dhadoop.version=3D2.2.0-cdh5.0.0-beta-2 clean package= =20 > -DskipTests >=20 > The program now gets further, but throws the following exception: >=20 > Container: container_1392713839733_0017_01_000002 on > el01cn04.unx.sas.com_8041 >=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D LogType: task-2-stderr.log > LogLength: 637 > Log Contents: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/giraph/yarn/GiraphYarnTask Caused by: > java.lang.ClassNotFoundException:=20 > org.apache.giraph.yarn.GiraphYarnTask at > java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > Could not find the main class: org.apache.giraph.yarn.GiraphYarnTask.=20 > Program will exit. >=20 > Do you have any additional suggestions for what I should try? >=20 > Thanks for your help. > Stefan >=20 > -----Original Message----- > From: shaposhnik@gmail.com [mailto:shaposhnik@gmail.com] On Behalf Of=20 > Roman Shaposhnik Sent: Wednesday, February 19, 2014 4:43 PM > To: user@giraph.apache.org > Subject: Re: Problem running SimpleShortestPathsComputation on CDH5=20 > with Hadoop 2.2.0 On Wed, Feb 19, 2014 at 1:12 PM, Stefan Beskow=20 > wrote: > > Hi. > >=20 > > I checked out and built Giraph for Cloudera CDH5 with Hadoop 2.2.0=20 > > using the > > following: > >=20 > > git clone git://git.apache.org/giraph.git snapshot_from_git cd=20 > > snapshot_from_git mvn -Phadoop_yarn -Dhadoop.version=3D2.2.0 clean=20 > > package -DskipTests >=20 > It may help to build against CDH5 directly by: > * manually adding repository.cloudera.com to the set of repos > * specifying -Dhadoop.version=3D2.2.0-cdh5.0.0-beta-2 >=20 > > When I run the sample application > > org.apache.giraph.examples.SimpleShortestPathsComputation I get the >=20 > > following exception: > You need to provide way more logs from the YARN side for us to make=20 > sense of it. >=20 > Thanks, > Roman.