I set this environment variable prior to invoking storm jar:
export STORM_JAR_JVM_OPTS=-Dmy.jvm.opt=/srv/myapp/config/config.txt
I then invoke storm jar in a standard way:
/srv/storm/bin/storm jar /srv/myapp/lib/myapp-jar-with-dependencies.jar
myapp.MyMain;
Yet when I access System.getProperty(my.jvm.opt) within my application during
the topology building phase I recieve unexpected value of
"/srv/myapp/config/config.txt
-Dstorm.jar=/srv/myapp/lib/myapp-jar-with-dependencies.jar" as if the jvm
thinks the value for my.jvm.opt is the entire JVM options string.
Am I setting STORM_JAR_JVM_OPTS incorrectly? Note that without this JAR_JVM_OPT
my application executes without any issues ignoring the code that needs this
jvm option set.
Thank you,
Michael