فهرست منبع

AMBARI-2160. zookeeper smoke test fails with unknown host exception for secure cluster. (jaimin)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1483942 13f79535-47bb-0310-9956-ffa450edef68
Jaimin Jetly 12 سال پیش
والد
کامیت
f544275b08
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 3 0
      CHANGES.txt
  2. 1 1
      ambari-agent/src/main/puppet/modules/hdp-zookeeper/files/zkSmoke.sh

+ 3 - 0
CHANGES.txt

@@ -862,6 +862,9 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-2160. zookeeper smoke test fails with unknown host exception for
+ secure cluster.(jaimin)
+
  AMBARI-2155. Incorrect page display after closing Reassign Master Wizard.
  (yusaku)
 

+ 1 - 1
ambari-agent/src/main/puppet/modules/hdp-zookeeper/files/zkSmoke.sh

@@ -24,7 +24,7 @@ smoke_script=$1
 smoke_user=$2
 conf_dir=$3
 export ZOOKEEPER_EXIT_CODE=0
-zkhosts=` grep server  $conf_dir/zoo.cfg  | cut -f 2 -d '=' | cut -f 1 -d ':' | tr '\n' ' ' `
+zkhosts=` grep "^server\.[[:digit:]]"  $conf_dir/zoo.cfg  | cut -f 2 -d '=' | cut -f 1 -d ':' | tr '\n' ' ' `
 zk_node1=`echo $zkhosts | tr ' ' '\n' | head -n 1`  
 echo "zk_node1=$zk_node1"
 # Delete /zk_smoketest znode if exists