trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sure...@apache.org
Subject [2/3] incubator-trafodion git commit: add slash
Date Tue, 05 Jul 2016 13:35:36 GMT
add slash

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/212744df
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/212744df
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/212744df

Branch: refs/heads/master
Commit: 212744dfa0b5145afaf152a15a683c3237da844d
Parents: 0e9f43a
Author: Eason <hfutmkby@gmail.com>
Authored: Mon Jun 27 22:20:32 2016 +0800
Committer: GitHub <noreply@github.com>
Committed: Mon Jun 27 22:20:32 2016 +0800

----------------------------------------------------------------------
 core/sqf/sql/scripts/install_local_hadoop | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/212744df/core/sqf/sql/scripts/install_local_hadoop
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/install_local_hadoop b/core/sqf/sql/scripts/install_local_hadoop
index 87d8dfe..89b3633 100755
--- a/core/sqf/sql/scripts/install_local_hadoop
+++ b/core/sqf/sql/scripts/install_local_hadoop
@@ -847,26 +847,26 @@ EOF
 
   cat <<EOF >$MY_SW_SCRIPTS_DIR/swstatus
 #!/bin/sh
-cd ${MY_SW_ROOT}
-. $MY_SW_SCRIPTS_DIR/sw_env.sh
-JPS_OUTPUT=`jps`
+cd \${MY_SW_ROOT}
+. \$MY_SW_SCRIPTS_DIR/sw_env.sh
+JPS_OUTPUT=\`jps\`
 SERVICES='HMaster NodeManager ResourceManager NameNode DataNode SecondaryNameNode'
-for s in $SERVICES; do
-    if [[ ! $JPS_OUTPUT =~ $s ]]; then
-        MISS_SERVICE="$s $MISS_SERVICE"
+for s in \$SERVICES; do
+    if [[ ! \$JPS_OUTPUT =~ \$s ]]; then
+        MISS_SERVICE="\$s \$MISS_SERVICE"
     fi
 done
 
-if [[ $MISS_SERVICE != '' ]]; then
-    echo "ERROR: Service \"$MISS_SERVICE\" are not up!"
+if [[ \$MISS_SERVICE != '' ]]; then
+    echo "ERROR: Service \"\$MISS_SERVICE\" are not up!"
     exit 1
 else
     echo "The local hadoop services are up!"
 fi
 
-NUM_MYSQLD_PROCS=`ps -aef | grep $USER | grep mysqld | grep -v grep | wc -l`
-if [[ $NUM_MYSQLD_PROCS -ne 0 ]]; then
-    echo "$NUM_MYSQLD_PROCS mysqld processes are running"
+NUM_MYSQLD_PROCS=\`ps -aef | grep \$USER | grep mysqld | grep -v grep | wc -l\`
+if [[ \$NUM_MYSQLD_PROCS -ne 0 ]]; then
+    echo "\$NUM_MYSQLD_PROCS mysqld processes are running"
     exit 0
 else
     echo "ERROR: mysqld process is not running!"


Mime
View raw message