You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@giraph.apache.org by Nitesh Upadhyay <ni...@gmail.com> on 2016/04/14 11:40:51 UTC

Change in giraph/examples is not reflecting

Hi,

I've recently builded the giraph on my local machine. and run the
SimpleShortestPathsComputation and SimplePageRankComputation. After
changing something(adding simple print statement etc) in those java file
I'm again building giraph. But that change is not reflecting when  I'm
re-running those classes. Please guide me to resolve this


-- 
Nitesh Upadhyay
Indian Institute Of Science

Re: Change in giraph/examples is not reflecting

Posted by Nitesh Upadhyay <ni...@gmail.com>.
In SimplePageRankComputation.java, I changed the "MAX_SUPERSTEPS = 30  " to
"MAX_SUPERSTEPS = 5".
Still its running for 30 iterations. that I found out by option
-Dgiraph.metrics.enable=true.

public class SimplePageRankComputation extends
BasicComputation<LongWritable,
    DoubleWritable, FloatWritable, DoubleWritable> {
  /** Number of supersteps for this test */
*  public static final int MAX_SUPERSTEPS = 5;// It was earlier 30.still
its running for 30 iterations *

this is the command I used to build the giraph file.

*mvn -Phadoop_yarn -Dhadoop.version=2.6.0 clean  package -DskipTests*

and this is the command I ran to for pagerank

hadoop jar
giraph-1.1.0/giraph-examples/target/giraph-examples-1.1.0-for-hadoop-2.6.0-jar-with-dependencies.jar
org.apache.giraph.GiraphRunner -Dgiraph.metrics.enable=true -libjars
giraph-1.1.0/giraph-core/target/giraph-1.1.0-for-hadoop-2.6.0-jar-with-dependencies.jar
org.apache.giraph.examples.SimplePageRankComputation -vif
org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat
-vip /input/ -vof org.apache.giraph.io.formats.IdWithValueTextOutputFormat
 -op /op5 -w 1 -mc
org.apache.giraph.examples.SimplePageRankComputation\$SimplePageRankMasterCompute



On Thu, Apr 14, 2016 at 3:10 PM, Nitesh Upadhyay <ni...@gmail.com>
wrote:

> Hi,
>
> I've recently builded the giraph on my local machine. and run the
> SimpleShortestPathsComputation and SimplePageRankComputation. After
> changing something(adding simple print statement etc) in those java file
> I'm again building giraph. But that change is not reflecting when  I'm
> re-running those classes. Please guide me to resolve this
>
>
> --
> Nitesh Upadhyay
> Indian Institute Of Science
>



-- 
Nitesh Upadhyay
Indian Institute Of Science