Просмотр исходного кода

AMBARI-16241. While adding Hive Server Interactive, ATLAS config recommendation throws error - add check only (smohanty)

Sumit Mohanty 9 лет назад
Родитель
Сommit
71305effa9

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py

@@ -811,7 +811,7 @@ class HDP23StackAdvisor(HDP22StackAdvisor):
 
     # atlas
     application_services_property = "*.application.services"
-    if application_services_property in services["configurations"]["falcon-startup.properties"]["properties"]:
+    if "falcon-startup.properties" in services["configurations"] and application_services_property in services["configurations"]["falcon-startup.properties"]["properties"]:
       application_services_value = services["configurations"]["falcon-startup.properties"]["properties"][application_services_property]
     else:
       application_services_value = " "