Hey Shekar, You should implement InitableTask. This has an init() method which receives the job's config. Then you can do config.get(), as you described below.
Cheers, Chris On 11/21/14 10:24 AM, "Shekar Tippur" <[email protected]> wrote: >I have a rudimentary question. How do I access the property thats defined >in > >wikipedia-parser.properties > >If I define a property in wikipedia-parser.properties called > >system.xyz=Hello > > >I tried to > >import org.apache.samza.config.Config; > >config.get("system.xyz") > >I get a null pointer exception > >I am passing the property file as an argument > >deploy/samza/bin/run-job.sh >--config-factory=org.apache.samza.config.factories.PropertiesConfigFactory >--config-path=file://$PWD/conf/wikipedia-parser.properties.local > >- Shekar
