nathanmarz/storm — pull request #783 by jpotter (2014-01-30 22:41:28+00:00)
Title: Fix JVM_OPTS to be a list, not string

The jvm options are being passed to java in the os.exec call as a single string, space-delimited, instead of as individual args in the args array.

For example, if you set STORM_JAR_JVM_OPTS to something like '-Djava.io.tmpdir=/mnt/tmp', then ./bin/storm will append '-Dstorm.jar=/home/ubuntu/example.jar' to the list and join it into a single string.
Some versions of java will parse it as a single option: 'java.io.tmpdir' = '/mnt/tmp -Dstorm.jar=/home/ubuntu/example.jar'.

This causes the storm jar command to fail with the error "Must submit topologies using the 'storm' client script so that StormSubmitter knows which jar to upload." because the storm.jar system property is missing.