Explorar o código

AMBARI-22015. livy2 interpreter errors (unable to impersonate users/ LLAP or Hive CNF issue) due to missing proxy configs. (Mingjie Tang via Swapan Shridhar).

Swapan Shridhar %!s(int64=8) %!d(string=hai) anos
pai
achega
12c9ca7e2f

+ 7 - 0
contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/stack_advisor.py

@@ -271,6 +271,13 @@ class ODPi20StackAdvisor(DefaultStackAdvisor):
         if not livyUser in users and livyUser is not None:
           users[livyUser] = {"propertyHosts" : "*","propertyGroups" : "*", "config" : "livy-env", "propertyName" : "livy_user"}
 
+    if "SPARK2" in servicesList:
+      livyUser = None
+      if "livy2-env" in services["configurations"] and "livy_user" in services["configurations"]["livy2-env"]["properties"]:
+        livyUser = services["configurations"]["livy2-env"]["properties"]["livy_user"]
+        if not livyUser in users and livyUser is not None:
+          users[livy2User] = {"propertyHosts" : "*","propertyGroups" : "*", "config" : "livy2-env", "propertyName" : "livy_user"}
+
     putCoreSiteProperty = self.putProperty(configurations, "core-site", services)
     putCoreSitePropertyAttribute = self.putPropertyAttribute(configurations, "core-site")