You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2014/05/21 17:27:32 UTC

[2/8] git commit: STORM-283 Support for config_value, running storm daemons as background process

STORM-283 Support for config_value, running storm daemons as background process

Project: http://git-wip-us.apache.org/repos/asf/incubator-storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-storm/commit/442752b8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-storm/tree/442752b8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-storm/diff/442752b8

Branch: refs/heads/master
Commit: 442752b86647bd7a9ebf149dcbc6862fbb993911
Parents: 60fac27
Author: ChitturiPadma <pa...@gmail.com>
Authored: Tue Apr 29 15:46:54 2014 +0530
Committer: ChitturiPadma <pa...@gmail.com>
Committed: Tue Apr 29 15:46:54 2014 +0530

----------------------------------------------------------------------
 bin/storm-config.cmd | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/442752b8/bin/storm-config.cmd
----------------------------------------------------------------------
diff --git a/bin/storm-config.cmd b/bin/storm-config.cmd
index 71c1721..184ba35 100644
--- a/bin/storm-config.cmd
+++ b/bin/storm-config.cmd
@@ -85,8 +85,16 @@ if not defined STORM_LOG_DIR (
 if not defined STORM_LOGBACK_CONFIGURATION_FILE (
   set STORM_LOGBACK_CONFIGURATION_FILE=%STORM_HOME%\logback\cluster.xml
 )
+%JAVA% -client -Dstorm.options= -Dstorm.conf.file= -cp %CLASSPATH% backtype.storm.command.config_value java.library.path > temp.txt
 
-set STORM_OPTS=-Dstorm.home=%STORM_HOME% -Djava.library.path=sbin
+FOR /F "tokens=1,* delims= " %%i in (temp.txt) do (
+	if %%i == VALUE: (
+	set JAVA_LIBRARY_PATH=%%j )
+)
+
+del /F temp.txt
+
+set STORM_OPTS=-Dstorm.options= -Dstorm.home=%STORM_HOME% -Djava.library.path=%JAVA_LIBRARY_PATH%
 set STORM_OPTS=%STORM_OPTS% -Dlogback.configurationFile=%STORM_LOGBACK_CONFIGURATION_FILE%
 set STORM_OPTS=%STORM_OPTS% -Dstorm.log.dir=%STORM_LOG_DIR%