giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Nalezenec <>
Subject Re: GiraphJob
Date Tue, 06 May 2014 11:38:04 GMT
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);


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

View raw message