kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mahong...@apache.org
Subject [1/3] incubator-kylin git commit: hotfix: move pid file for each job to KYLIN_HOME/logs
Date Fri, 03 Jul 2015 06:57:07 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/0.8 a88e10bf2 -> 633123732


hotfix: move pid file for each job to KYLIN_HOME/logs


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/230fe408
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/230fe408
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/230fe408

Branch: refs/heads/0.8
Commit: 230fe408d866cbf3de311a1207ddf55c9f94e94b
Parents: a88e10b
Author: honma <honma@ebay.com>
Authored: Thu Jul 2 16:16:58 2015 +0800
Committer: honma <honma@ebay.com>
Committed: Fri Jul 3 14:54:43 2015 +0800

----------------------------------------------------------------------
 bin/cleanup_streaming_files.sh | 4 ++--
 bin/kylin.sh                   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/230fe408/bin/cleanup_streaming_files.sh
----------------------------------------------------------------------
diff --git a/bin/cleanup_streaming_files.sh b/bin/cleanup_streaming_files.sh
index 6b759ca..7f88c48 100644
--- a/bin/cleanup_streaming_files.sh
+++ b/bin/cleanup_streaming_files.sh
@@ -5,7 +5,7 @@ then
     echo 'invalid input' || exit -1
 fi
 
-cd $KYLIN_HOME
+cd $KYLIN_HOME/logs
 
 for pidfile in `find . -name "$1_1*"`
 do
@@ -18,7 +18,7 @@ do
     else
         echo "pid:$pid not running, try to delete files"
         echo $pidfile | xargs rm
-        echo "logs/streaming_$pidfile.log" | xargs rm
+        echo "streaming_$pidfile.log" | xargs rm
     fi
 done
 

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/230fe408/bin/kylin.sh
----------------------------------------------------------------------
diff --git a/bin/kylin.sh b/bin/kylin.sh
index dcc6d2d..6311f6c 100644
--- a/bin/kylin.sh
+++ b/bin/kylin.sh
@@ -112,7 +112,7 @@ then
         -Dkylin.hive.dependency=${hive_dependency} \
         -Dkylin.hbase.dependency=${hbase_dependency} \
         -Dspring.profiles.active=${spring_profile} \
-        org.apache.kylin.job.streaming.StreamingCLI $@ > ${KYLIN_HOME}/logs/streaming_$3_$4.log
2>&1 & echo $! > ${KYLIN_HOME}/$3_$4 &
+        org.apache.kylin.job.streaming.StreamingCLI $@ > ${KYLIN_HOME}/logs/streaming_$3_$4.log
2>&1 & echo $! > ${KYLIN_HOME}/logs/$3_$4 &
         echo "streaming started name: $3 id: $4"
         exit 0
     elif [ $2 == "stop" ]


Mime
View raw message