Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 4538a0dd9 -> 8e69f3f86


AMBARI-16693 - Atlas Server script error during upgrade.


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8e69f3f8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8e69f3f8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8e69f3f8

Branch: refs/heads/branch-2.4
Commit: 8e69f3f86a52c1ad72bc22c335fb203eb5caaa3f
Parents: 4538a0d
Author: tbeerbower <tbeerbo...@hortonworks.com>
Authored: Tue May 17 09:13:39 2016 -0400
Committer: tbeerbower <tbeerbo...@hortonworks.com>
Committed: Tue May 17 09:14:59 2016 -0400

----------------------------------------------------------------------
 .../common-services/ATLAS/0.1.0.2.3/package/scripts/params.py     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/8e69f3f8/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
 
b/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
index f9422ee..21199d8 100644
--- 
a/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
+++ 
b/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
@@ -135,7 +135,8 @@ else:
 
 # kafka
 kafka_bootstrap_servers = ""
-kafka_broker_hosts = config['clusterHostInfo']['kafka_broker_hosts']
+kafka_broker_hosts = default('/clusterHostInfo/kafka_broker_hosts', [])
+
 if not len(kafka_broker_hosts) == 0:
   kafka_broker_port = default("/configurations/kafka-broker/port", 6667)
   kafka_bootstrap_servers = kafka_broker_hosts[0] + ":" + 
str(kafka_broker_port)

Reply via email to