Update:
Using GenericOptionsParser is not the best way. Best way implementing org.apache.hadoop.util.Tool and using format -Dname=value for parameters.

Regards
Lukas

On 6.5.2014 13:38, Lukas Nalezenec wrote:
Hi,
You can read String array of parameters given to Giraph in method main as in any other Java application, you can do the same if your driver implements org.apache.hadoop.util.Tool in method run.

Imho best way is using GenericOptionsParser - the parameters will be copied to configuration, You have to use format -Dname=value for parameters.
public  static  void  main(String[]args)throws  Exception  {
     Configuration  conf  =new  Configuration();
     new  GenericOptionsParser(conf, args);
}

Regards
Lukas



On 6.5.2014 13:26, Carmen Manzulli wrote:
hi,
I would like to know (if and) how is it possible to add new value (string)to read from the command line when running giraph

Thanks and regards,
Carmen


Reply via email to