Hi Jeremy,

Currently Samza does not support accepting from command. After SAMZA-655
<https://issues.apache.org/jira/browse/SAMZA-655> and SAMZA-348
<https://issues.apache.org/jira/browse/SAMZA-348> , you will have other two
options - environment variable and stream.

*Then How to pass argument from the properties file?*


1. specify the my.random.config.value=foo in the .properties file
2. in the task init() method, context.getSamzaContainerContext().config.get(
"my.random.config.value")


Hope this helps.

Thanks,

Fang, Yan
yanfang...@gmail.com

On Tue, Apr 21, 2015 at 11:29 AM, jeremy p <athomewithagroove...@gmail.com>
wrote:

> Hello all,
>
> Is there a way to pass arguments to a Samza job from the command line?  If
> not, is there any way to pass arguments to a Samza job besides the
> .properties file?  Also, is there a way to pass application-specific
> properties using the .properties file?  (such as
> my.random.config.value=foo)
>
> Thanks for taking a look!
>
> --Jeremy
>

Reply via email to