giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Beskow <>
Subject RE: Problem running SimpleShortestPathsComputation on CDH5 with Hadoop 2.2.0
Date Thu, 20 Feb 2014 17:42:45 GMT
Thanks Roman for getting back to me so quickly. I checked with Cloudera and they have a maven
repository for CDH5 (version 2.2.0-cdh5.0.0-beta-2) as shown below:


I added that to the pom.xml file and ran a new build using the following command:

mvn -Phadoop_yarn -Dhadoop.version=2.2.0-cdh5.0.0-beta-2 clean package -DskipTests

The program now gets further, but throws the following exception:

Container: container_1392713839733_0017_01_000002 on
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: org.apache.giraph.yarn.GiraphYarnTask
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
Could not find the main class: org.apache.giraph.yarn.GiraphYarnTask.  Program will exit.

Do you have any additional suggestions for what I should try?

Thanks for your help.

-----Original Message-----
From: [] On Behalf Of Roman Shaposhnik
Sent: Wednesday, February 19, 2014 4:43 PM
Subject: Re: Problem running SimpleShortestPathsComputation on CDH5 with Hadoop 2.2.0

On Wed, Feb 19, 2014 at 1:12 PM, Stefan Beskow <> wrote:
> Hi.
> I checked out and built Giraph for Cloudera CDH5 with Hadoop 2.2.0 
> using the
> following:
> git clone git:// snapshot_from_git cd 
> snapshot_from_git mvn -Phadoop_yarn -Dhadoop.version=2.2.0 clean 
> package -DskipTests

It may help to build against CDH5 directly by:
   * manually adding to the set of repos
   * specifying -Dhadoop.version=2.2.0-cdh5.0.0-beta-2

> When I run the sample application
> org.apache.giraph.examples.SimpleShortestPathsComputation I get the 
> following exception:

You need to provide way more logs from the YARN side for us to make sense of it.


View raw message