cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcken...@apache.org
Subject [2/3] cassandra git commit: Add logdir and storagedir to nodetool.bat
Date Thu, 23 Jul 2015 17:25:22 GMT
Add logdir and storagedir to nodetool.bat

Patch by jmckenzie; reviewed by pthompson for CASSANDRA-9696


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9ad13309
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9ad13309
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9ad13309

Branch: refs/heads/trunk
Commit: 9ad133097b5120fc6838b62f649c4d058639215e
Parents: 99decd8
Author: Joshua McKenzie <jmckenzie@apache.org>
Authored: Thu Jul 23 13:23:55 2015 -0400
Committer: Joshua McKenzie <jmckenzie@apache.org>
Committed: Thu Jul 23 13:23:55 2015 -0400

----------------------------------------------------------------------
 bin/nodetool.bat | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9ad13309/bin/nodetool.bat
----------------------------------------------------------------------
diff --git a/bin/nodetool.bat b/bin/nodetool.bat
index ec64db0..92d5c05 100644
--- a/bin/nodetool.bat
+++ b/bin/nodetool.bat
@@ -23,8 +23,11 @@ call cassandra.in.bat
 if NOT DEFINED CASSANDRA_HOME set CASSANDRA_HOME=%~dp0..
 if NOT DEFINED JAVA_HOME goto :err
 
+set CASSANDRA_PARAMS=%CASSANDRA_PARAMS% -Dcassandra.logdir="%CASSANDRA_HOME%\logs"
+set CASSANDRA_PARAMS=%CASSANDRA_PARAMS% -Dcassandra.storagedir="%CASSANDRA_HOME%\data"
+
 echo Starting NodeTool
-"%JAVA_HOME%\bin\java" -cp %CASSANDRA_CLASSPATH% -Dlogback.configurationFile=logback-tools.xml
org.apache.cassandra.tools.NodeTool %*
+"%JAVA_HOME%\bin\java" -cp %CASSANDRA_CLASSPATH% %CASSANDRA_PARAMS% -Dlogback.configurationFile=logback-tools.xml
org.apache.cassandra.tools.NodeTool %*
 goto finally
 
 :err


Mime
View raw message