trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sure...@apache.org
Subject [1/2] incubator-trafodion git commit: [TRAFODION-2313] dcscheck doesn't return in REST
Date Thu, 27 Oct 2016 15:14:54 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master ba3628b6f -> 8fa6622b3


[TRAFODION-2313] dcscheck doesn't return in REST

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

Branch: refs/heads/master
Commit: b3d9afa7690ccd712dedb4f8978e6ac77cff3ce4
Parents: 8d8adf1
Author: Eason <hfutmkby@gmail.com>
Authored: Wed Oct 26 23:22:03 2016 +0800
Committer: GitHub <noreply@github.com>
Committed: Wed Oct 26 23:22:03 2016 +0800

----------------------------------------------------------------------
 core/sqf/sql/scripts/dcscheck | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b3d9afa7/core/sqf/sql/scripts/dcscheck
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/dcscheck b/core/sqf/sql/scripts/dcscheck
index a478451..2141e56 100755
--- a/core/sqf/sql/scripts/dcscheck
+++ b/core/sqf/sql/scripts/dcscheck
@@ -138,7 +138,7 @@ if ( [ $sq_stat == 0 ] || [ $sq_stat == 1 ] ); then
   fi 
   echo
   if ( [ "$actual_dcsmaster_cnt" '!=' 0 ] && [ "$actual_dcsserver_cnt" '!=' 0 ] );
then
-   echo "ls $dcsznode"|$DCS_INSTALL_DIR/bin/dcs zkcli > $dcstmp
+   $DCS_INSTALL_DIR/bin/dcs zkcli ls $dcsznode > $dcstmp
    zkport=`cat $dcstmp | /usr/bin/head -n 1 | cut -d ":" -f2`
    if [ ! -z "$zkport" ]; then
      echo "Zookeeper listen port: $zkport"
@@ -146,7 +146,7 @@ if ( [ $sq_stat == 0 ] || [ $sq_stat == 1 ] ); then
      echo "Zookeeper is not started..."
      exit 1
    fi
-   masterport=`cat $dcstmp | /usr/bin/tail -n 1 | cut -d ":" -f4`
+   masterport=`cat $dcstmp | /usr/bin/tail -n 1 | cut -d ":" -f2`
    if [ ! -z "$masterport" ]; then
      echo -e "DcsMaster listen port: $masterport\n"
      if [[ ! -z "$primary_dcsmaster" ]]; then


Mime
View raw message