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/09 03:03:07 UTC

[incubator-iotdb] branch 0.8-fix_check-wal_script_new created (now 940bc4f)

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

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


      at 940bc4f  fix start-walchecker scripts for leting user define the wal folder

This branch includes the following new commits:

     new 940bc4f  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_new
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit 940bc4f8f95243957c58569a172ccb30405dcf04
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/src/assembly/resources/tools/start-WalChecker.bat |  8 ++++++--
 server/src/assembly/resources/tools/start-WalChecker.sh  | 11 ++++++++---
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/server/src/assembly/resources/tools/start-WalChecker.bat b/server/src/assembly/resources/tools/start-WalChecker.bat
index 5bf530f..08189ce 100644
--- a/server/src/assembly/resources/tools/start-WalChecker.bat
+++ b/server/src/assembly/resources/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/src/assembly/resources/tools/start-WalChecker.sh b/server/src/assembly/resources/tools/start-WalChecker.sh
old mode 100644
new mode 100755
index fe162f2..c7afb9f
--- a/server/src/assembly/resources/tools/start-WalChecker.sh
+++ b/server/src/assembly/resources/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