Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4B9E1200B35 for ; Tue, 5 Jul 2016 15:35:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4A3DE160A2C; Tue, 5 Jul 2016 13:35:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 97E84160A60 for ; Tue, 5 Jul 2016 15:35:39 +0200 (CEST) Received: (qmail 67129 invoked by uid 500); 5 Jul 2016 13:35:38 -0000 Mailing-List: contact commits-help@trafodion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@trafodion.apache.org Delivered-To: mailing list commits@trafodion.apache.org Received: (qmail 67120 invoked by uid 99); 5 Jul 2016 13:35:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 13:35:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2D28F180534 for ; Tue, 5 Jul 2016 13:35:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id y_3rhXNSwshw for ; Tue, 5 Jul 2016 13:35:36 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id E89445F1F6 for ; Tue, 5 Jul 2016 13:35:35 +0000 (UTC) Received: (qmail 67038 invoked by uid 99); 5 Jul 2016 13:35:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 13:35:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 35D81E07F6; Tue, 5 Jul 2016 13:35:35 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sureshs@apache.org To: commits@trafodion.incubator.apache.org Date: Tue, 05 Jul 2016 13:35:36 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/3] incubator-trafodion git commit: add slash archived-at: Tue, 05 Jul 2016 13:35:40 -0000 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 Authored: Mon Jun 27 22:20:32 2016 +0800 Committer: GitHub 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 <$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!"