Use them as -Dgiraph.metrics.enable=true, after GiraphRunner but before you specify the algorithm of interest. In other words,

hadoop jar .... org.apache.giraph.GiraphRunner \
   -Dgiraph.metrics.enable=true \ \
   org.apache.giraph.examples.SomeAlgorithm \
   -ca AlgorithmSpecificOpts -vif InputFormat ... etc.

As Matthew mentioned, by default it outputs metrics to the stderr logs---I haven't used the directory option before either.


On Fri, Oct 10, 2014 at 2:10 PM, Matthew Saltz <> wrote:

Use the -ca flag, for each one. Metrics.enable puts metrics from the run in the stderr file of each worker by default. I've never used the command to change the directory. If that's not what you're looking for let me know, I'll be glad to help.


El 10/10/2014 19:55, "xuhong zhang" <> escribió:
Dear everyone,

How to use  "giraph.metrics.enable=true" and "" options.

Where should i specify them in the command?


Xuhong Zhang