giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sundara Raghavan Sankaran <>
Subject Re: string parameter from command line
Date Wed, 16 Jul 2014 10:15:42 GMT
I'm not sure of the use case here, but I'll give an example which might
help you.

The parameter is given in the command line with -ca (as you said). For
hadoop jar sample.jar -vip .... *-ca sample.option1=value1 -ca

You can then get this value from the configuration in your computation class

*String option1 = getConf().get("sample.option1"); // will get "value1"*

*String option2 = getConf().get("sample.option2"); // will get "value2"*

On Wed, Jul 16, 2014 at 2:49 PM, Carmen Manzulli <>

> Hi experts,
> I'm trying to insert a string parameter from the command line with
> "-ca" in my Computation code i've created a StrConfOption...when
> running i get NPE because it seems to set the value of this string to
> null...
> how can i fix this problem?

View raw message