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: "[email protected]<mailto:[email protected]>" Date: Wednesday, October 7, 2015 at 2:15 PM To: "[email protected]<mailto:[email protected]>" 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:[email protected]] Sent: Wednesday, September 30, 2015 2:31 PM To: [email protected]<mailto:[email protected]> 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: "[email protected]<mailto:[email protected]>" Date: Wednesday, September 30, 2015 at 8:05 AM To: "[email protected]<mailto:[email protected]>" 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.
