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

nic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new 566ded8  KYLIN-4095: Add RESOURCE_PATH_PREFIX option in ResourceTool 
(addendum)
566ded8 is described below

commit 566ded888733dec7aba241944675169c4ef869d3
Author: Liu Shaohui <liushao...@xiaomi.com>
AuthorDate: Fri Sep 20 21:34:39 2019 +0800

    KYLIN-4095: Add RESOURCE_PATH_PREFIX option in ResourceTool (addendum)
---
 build/bin/metastore.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/build/bin/metastore.sh b/build/bin/metastore.sh
index 1820a03..c4b39c5 100755
--- a/build/bin/metastore.sh
+++ b/build/bin/metastore.sh
@@ -36,7 +36,8 @@ then
     echo "Starting backup to ${_file}"
     mkdir -p ${_file}
 
-    ${KYLIN_HOME}/bin/kylin.sh 
org.apache.kylin.common.persistence.ResourceTool download ${_file}
+    ${KYLIN_HOME}/bin/kylin.sh 
org.apache.kylin.common.persistence.ResourceTool download ${_file} "${@:2}"
+
     echo "metadata store backed up to ${_file}"
 
 elif [ "$1" == "fetch" ]
@@ -57,7 +58,7 @@ then
 
     _file=$2
     echo "Starting restoring $_file"
-    ${KYLIN_HOME}/bin/kylin.sh 
org.apache.kylin.common.persistence.ResourceTool upload $_file
+    ${KYLIN_HOME}/bin/kylin.sh 
org.apache.kylin.common.persistence.ResourceTool upload $_file "${@:3}"
 
 elif [ "$1" == "list" ]
 then
@@ -83,7 +84,7 @@ then
 elif [ "$1" == "reset" ]
 then
 
-    ${KYLIN_HOME}/bin/kylin.sh 
org.apache.kylin.common.persistence.ResourceTool  reset
+    ${KYLIN_HOME}/bin/kylin.sh 
org.apache.kylin.common.persistence.ResourceTool reset
     
 elif [ "$1" == "refresh-cube-signature" ]
 then
@@ -96,11 +97,11 @@ then
     ${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.tool.MetadataCleanupJob  
"${@:2}"
 
 else
-    echo "usage: metastore.sh backup"
+    echo "usage: metastore.sh backup [RESOURCE_PATH_PREFIX]"
     echo "       metastore.sh fetch DATA"
     echo "       metastore.sh reset"
     echo "       metastore.sh refresh-cube-signature"
-    echo "       metastore.sh restore PATH_TO_LOCAL_META"
+    echo "       metastore.sh restore PATH_TO_LOCAL_META 
[RESOURCE_PATH_PREFIX]"
     echo "       metastore.sh list RESOURCE_PATH"
     echo "       metastore.sh cat RESOURCE_PATH"
     echo "       metastore.sh remove RESOURCE_PATH"

Reply via email to