giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jyoti Yadav <rao.jyoti26ya...@gmail.com>
Subject Re: Problem in running my own giraph program
Date Sun, 27 Oct 2013 05:12:56 GMT
Hi Claudio...

Thanks for your active response..
Still I have doubt.The giraph program which I am running is not the sample
program given in the giraph examples,although the name looks the  same. Ok
I changed the name. Now the new name of the program I want to execute is
try.java.

I compiled it successfully and stored the .class file in a directory named
/home/hduser/try_classes and created a jar file named /home/hduser/try.jar
from the try_classes subdirectory.

Now I want to run this try.class file.For that I need to include this my
own created jar file  to the classpath.What should I do?

Please help.
Jyoti


On Sun, Oct 27, 2013 at 1:20 AM, Claudio Martella <
claudio.martella@gmail.com> wrote:

> try removing the "-libjars" string. that is necessary if you need
> additional jar for your computation class. After the GiraphRunner class,
> you should have the name of the computation class (
> org.apache.giraph.examples.SimpleShortestPathsComputation in your case).
> The rest looks fine for me.
>
>
> On Sat, Oct 26, 2013 at 8:14 PM, Jyoti Yadav <rao.jyoti26yadav@gmail.com>wrote:
>
>> Hi..
>> I am new to giraph..I tried to run my giraph job,which compiled
>> successfully.
>> I gave following command..  but program is not running successfully.
>>
>>
>> bin/hadoop jar
>> $GIRAPH_HOME/giraph-examples/target/giraph-examples-1.1.0-SNAPSHOT-for-hadoop-
>> 0.20.203.0-jar-with-dependencies.jar org.apache.giraph.GiraphRunner
>> -libjars /home/hduser/sp_jar
>> org.apache.giraph.examples.SimpleShortestPathsComputation -vif
>> org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat
>> -vip /user/hduser/sp_input/tiny_graph.txt -vof
>> org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op
>> /user/hduser/sp_output3/shortestpaths -w 1
>> 13/10/26 23:25:12 INFO utils.ConfigurationUtils: No edge input format
>> specified. Ensure your InputFormat does not require one.
>> 13/10/26 23:25:12 INFO utils.ConfigurationUtils: No edge output format
>> specified. Ensure your OutputFormat does not require one.
>> 13/10/26 23:25:12 INFO job.GiraphJob: run: Since checkpointing is
>> disabled (default), do not allow any task retries (setting
>> mapred.map.max.attempts = 0, old value = 4)
>> 13/10/26 23:25:14 INFO job.GiraphJob: run: Tracking URL:
>> http://localhost:50030/jobdetails.jsp?jobid=job_201310261810_0004
>> 13/10/26 23:26:09 INFO mapred.JobClient: Running job:
>> job_201310261810_0004
>> 13/10/26 23:26:09 INFO mapred.JobClient: Job complete:
>> job_201310261810_0004
>> 13/10/26 23:26:09 INFO mapred.JobClient: Counters: 6
>> 13/10/26 23:26:09 INFO mapred.JobClient:   Job Counters
>> 13/10/26 23:26:09 INFO mapred.JobClient:     SLOTS_MILLIS_MAPS=78803
>> 13/10/26 23:26:09 INFO mapred.JobClient:     Total time spent by all
>> reduces waiting after reserving slots (ms)=0
>> 13/10/26 23:26:09 INFO mapred.JobClient:     Total time spent by all maps
>> waiting after reserving slots (ms)=0
>> 13/10/26 23:26:09 INFO mapred.JobClient:     Launched map tasks=2
>> 13/10/26 23:26:09 INFO mapred.JobClient:     SLOTS_MILLIS_REDUCES=0
>> 13/10/26 23:26:09 INFO mapred.JobClient:     Failed map tasks=1
>>
>>
>> Please help me out..
>>
>> Thanks in advavce
>> Jyoti
>>
>
>
>
> --
>    Claudio Martella
>    claudio.martella@gmail.com
>

Mime
View raw message