You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Dan Harvey (JIRA)" <ji...@apache.org> on 2015/04/17 14:41:59 UTC

[jira] [Updated] (SAMZA-655) Add environment variable configuration rewriter.

     [ https://issues.apache.org/jira/browse/SAMZA-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Harvey updated SAMZA-655:
-----------------------------
    Description: 
It is useful to be able to change configuration via system environment variables. It makes sense to do this in Samza via a ConfigRewriter.

The proposed spec is as follows.
 - Take all env variables that start with SAMZA_ and strip this prefix.
 - Downcase the renaming key
 - Convert underscores to fullstop

So you will have SAMZA_FOO_BAR -> foo.bar as a samza config key.

This means environment variable keys will conform to usual standards. The downside to this is that property keys in samza would not be able to have uppercase characters or _ as they would be ambiguous when mapping names.

Still even with these limitations I think it is useful.

  was:
It is useful to be able to change configuration via system environment variables. It makes sense to do this in Samza via a ConfigRewriter.

The downside to this is some requirements on the environment variable names if they are to conform to usual standards. The properties in samza would not be able to have uppercase characters or _ as they would be ambiguous when mapping names.

Still even with these limitations I think it is useful.


> Add environment variable configuration rewriter.
> ------------------------------------------------
>
>                 Key: SAMZA-655
>                 URL: https://issues.apache.org/jira/browse/SAMZA-655
>             Project: Samza
>          Issue Type: New Feature
>            Reporter: Dan Harvey
>            Assignee: Dan Harvey
>            Priority: Minor
>
> It is useful to be able to change configuration via system environment variables. It makes sense to do this in Samza via a ConfigRewriter.
> The proposed spec is as follows.
>  - Take all env variables that start with SAMZA_ and strip this prefix.
>  - Downcase the renaming key
>  - Convert underscores to fullstop
> So you will have SAMZA_FOO_BAR -> foo.bar as a samza config key.
> This means environment variable keys will conform to usual standards. The downside to this is that property keys in samza would not be able to have uppercase characters or _ as they would be ambiguous when mapping names.
> Still even with these limitations I think it is useful.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)