storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garcia-Contractor, Joseph (CORP)" <Joseph.Garcia-Contrac...@ADP.com>
Subject RE: Storm and enviroment variables
Date Thu, 08 Oct 2015 13:52:31 GMT
I did not see a –config option in the storm python start script… I did however find in
there that if I set the STORM_CONF_DIR environment variable it would look for storm.yaml in
that dir and this fixed my issue.

From: Priyank Shah [mailto:pshah@hortonworks.com]
Sent: Wednesday, October 07, 2015 5:31 PM
To: user@storm.apache.org
Subject: Re: Storm and enviroment variables

I think you can specify a config file that is other than the default. Can you try —config
<pathToYourYamlFile> command line option while running storm command ?

From: "Garcia-Contractor, Joseph (CORP)"
Reply-To: "user@storm.apache.org<mailto:user@storm.apache.org>"
Date: Wednesday, October 7, 2015 at 2:15 PM
To: "user@storm.apache.org<mailto:user@storm.apache.org>"
Subject: RE: Storm and enviroment variables

Ok so an additional question here…

Can I tell storm on startup to use a storm.yaml file that I specify with a full path, or will
it only look in /etc/storm/conf/storm.yaml?

Joe

From: Priyank Shah [mailto:pshah@hortonworks.com]
Sent: Wednesday, September 30, 2015 2:31 PM
To: user@storm.apache.org<mailto:user@storm.apache.org>
Subject: Re: Storm and enviroment variables

Hi Joseph,

I think storm core components don’t support environment variables. It either has to be a
config yaml file or a –c option. For –c option, its a key value pair of the form key=value.
I checked the code and key should be same as key in yaml. It should work for simple strings.
 But not sure about other types. In the code its trying to parse it as a json. You can give
it a try.

I don’t know about logback file . But you can configure your log directory using –c storm.log.dir=/var/log/
option.

From: "Garcia-Contractor, Joseph (CORP)"
Reply-To: "user@storm.apache.org<mailto:user@storm.apache.org>"
Date: Wednesday, September 30, 2015 at 8:05 AM
To: "user@storm.apache.org<mailto:user@storm.apache.org>"
Subject: Storm and enviroment variables

Hi All,

Another question.

Does storm accept environment variables that can be used in place of /etc/storm/conf/storm.yaml?

If so, what is the format of the environment variable it?  IE.: storm.local.dir in storm.yaml
would be STORM_LOCAL_DIR in the environment.

I see that I can use –c at the command line but I would prefer using environment variable
without having to build the command line args.  If I need to go with –c, what would the
arguments still be in yaml format?  IE.: storm.zookeeper.servers=”[ zk_host1.foo, zk_host2.foo,
zk_host3.foo ]

Is there a way to override the where the logback file is located and read from?
________________________________
This message and any attachments are intended only for the use of the addressee and may contain
information that is privileged and confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended recipient, you are hereby notified
that any dissemination of this communication is strictly prohibited. If you have received
this communication in error, notify the sender immediately by return email and delete the
message and any attachments from your system.
Mime
View raw message