Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Storm env file

Storm env file

New Contributor

Hi there,

I am trying to add a custom jvm parameters to pass to storm master as well as workers to find a property file location. When I add to the master's /etc/storm/conf/storm-env.sh, it gets picked from my topology main method. But, when added to the worker's instance the same JVM argument doest seem to work. Do the supervisors need a restart for this change(new JVM arg under) to appear ?

contents of my storm-env.sh :

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; min-height: 15.0px} span.s1 {font-variant-ligatures: no-common-ligatures}

#!/bin/bash

# Set Storm specific environment variables here.

# The java implementation to use.

export JAVA_HOME=/usr/jdk64/jdk1.8.0_77

export STORM_CONF_DIR=/usr/hdp/current/storm-client/conf

export STORM_HOME=/usr/hdp/current/storm-client

export STORM_JAR_JVM_OPTS=-Dext.properties.dir=/etc/dataplatform/chinmayie/dc560b50-9e20-41b9-a76b-d32ebfbdcd7a/application.properties

Thanks!!

2 REPLIES 2

Re: Storm env file

New Contributor

Typically env files like storm-env are shared across all the components, so a restart would be appropriate.

Highlighted

Re: Storm env file

Expert Contributor

Hi Manoj,

Please refer below link hope it will be useful.

http://stackoverflow.com/questions/18061332/storm-topology-configuration

Don't have an account?
Coming from Hortonworks? Activate your account here