You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2019/08/03 15:24:39 UTC

[incubator-iotdb] branch 0.8-fix_check_wal_script created (now 78b26ef)

This is an automated email from the ASF dual-hosted git repository.

hxd pushed a change to branch 0.8-fix_check_wal_script
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at 78b26ef  fix start-walchecker scripts for leting user define the wal folder

This branch includes the following new commits:

     new 78b26ef  fix start-walchecker scripts for leting user define the wal folder

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-iotdb] 01/01: fix start-walchecker scripts for leting user define the wal folder

Posted by hx...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hxd pushed a commit to branch 0.8-fix_check_wal_script
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit 78b26ef08a76f6a26fbfa6aa55d801054aefce2e
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Sat Aug 3 23:24:20 2019 +0800

    fix start-walchecker scripts for leting user define the wal folder
---
 server/iotdb/tools/start-WalChecker.bat |  8 ++++++--
 server/iotdb/tools/start-WalChecker.sh  | 11 ++++++++---
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/server/iotdb/tools/start-WalChecker.bat b/server/iotdb/tools/start-WalChecker.bat
index 5bf530f..08189ce 100644
--- a/server/iotdb/tools/start-WalChecker.bat
+++ b/server/iotdb/tools/start-WalChecker.bat
@@ -85,8 +85,12 @@ REM ----------------------------------------------------------------------------
 :okClasspath
 
 rem echo CLASSPATH: %CLASSPATH%
-set IOTDB_DATA=%IOTDB_HOME%\data
-set IOTDB_WAL=%IOTDB_DATA%\wal
+set IOTDB_WAL=%1
+
+IF "%IOTDB_WAL%"=="" (
+    echo "please input the wal folder."
+    goto finally
+    )
 
 IF EXIST "%IOTDB_WAL%" (
     "%JAVA_HOME%\bin\java" %JAVA_OPTS% %IOTDB_HEAP_OPTS% -cp %CLASSPATH% %IOTDB_JMX_OPTS% %MAIN_CLASS% %IOTDB_WAL%
diff --git a/server/iotdb/tools/start-WalChecker.sh b/server/iotdb/tools/start-WalChecker.sh
old mode 100644
new mode 100755
index fe162f2..c7afb9f
--- a/server/iotdb/tools/start-WalChecker.sh
+++ b/server/iotdb/tools/start-WalChecker.sh
@@ -74,11 +74,16 @@ launch_service()
 # Start up the service
 #launch_service "$classname"
 
-if [ ! -d ${IOTDB_HOME}/data/wal ]; then
-    echo "Can't find wal directory." 
+if [ $# -ne 1 ]; then
+    echo "please input the wal folder."
+exit 1;
+fi
+
+if [ ! -d ${1} ]; then
+    echo "Can't find wal directory. ${1}" 
     exit 1;
 else
-    WALPATH=${IOTDB_HOME}/data/wal
+    WALPATH=${1}
     launch_service "$classname"    
 fi