You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@giraph.apache.org by Carmen Manzulli <ca...@gmail.com> on 2014/05/06 13:26:48 UTC
GiraphJob
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
Re: GiraphJob
Posted by Lukas Nalezenec <lu...@firma.seznam.cz>.
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
>
Re: GiraphJob
Posted by Lukas Nalezenec <lu...@firma.seznam.cz>.
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