hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wan...@apache.org
Subject incubator-hawq git commit: HAWQ-384. hawq init fail duo to ssh strict host key checking.
Date Tue, 02 Feb 2016 06:51:21 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 8749049d2 -> c577d622a


HAWQ-384. hawq init fail duo to ssh strict host key checking.


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

Branch: refs/heads/master
Commit: c577d622a6403b49b78b5cdc43aacbb4274a8c5f
Parents: 8749049
Author: Zhanwei Wang <wangzw@apache.org>
Authored: Tue Feb 2 14:42:34 2016 +0800
Committer: Zhanwei Wang <wangzw@apache.org>
Committed: Tue Feb 2 14:51:09 2016 +0800

----------------------------------------------------------------------
 tools/bin/lib/hawqinit.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/c577d622/tools/bin/lib/hawqinit.sh
----------------------------------------------------------------------
diff --git a/tools/bin/lib/hawqinit.sh b/tools/bin/lib/hawqinit.sh
index 808cb5f..ec1e574 100755
--- a/tools/bin/lib/hawqinit.sh
+++ b/tools/bin/lib/hawqinit.sh
@@ -101,21 +101,21 @@ get_all_ip_address() {
         cmd_str="${IFCONFIG} |${GREP} -v '127.0.0' |${AWK} '/inet addr/{print substr(\$2,6)}'"
     fi
 
-    master_ip_address_all=`${SSH} ${master_host_name} "${cmd_str}"`
+    master_ip_address_all=`${SSH} -o 'StrictHostKeyChecking no' ${hawqUser}@${master_host_name}
"${cmd_str}"`
     if [ -z "${master_ip_address_all}" ];then
         ${ECHO} "Failed to get master ip addresses"
         exit 1
     fi
 
     if [ "${standby_host_lowercase}" != "none" ] && [ -n "${standby_host_lowercase}"
];then
-        standby_ip_address_all=`${SSH} ${standby_host_name} "${cmd_str}"`
+        standby_ip_address_all=`${SSH} -o 'StrictHostKeyChecking no' ${hawqUser}@${standby_host_name}
"${cmd_str}"`
         if [ -z "${standby_ip_address_all}" ];then
             ${ECHO} "Failed to get standby ip addresses"
             exit 1
         fi
     fi
 
-    segment_ip_address_all=`${SSH} localhost "${cmd_str}"`
+    segment_ip_address_all=`${SSH} -o 'StrictHostKeyChecking no' ${hawqUser}@localhost "${cmd_str}"`
 
     if [ -z "${segment_ip_address_all}" ];then
         ${ECHO} "Failed to get segment ip addresses"


Mime
View raw message