ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject [34/50] [abbrv] ambari git commit: AMBARI-22015. livy2 interpreter errors (unable to impersonate users/ LLAP or Hive CNF issue) due to missing proxy configs. (Mingjie Tang via Swapan Shridhar).
Date Tue, 26 Sep 2017 22:26:33 GMT
AMBARI-22015. livy2 interpreter errors (unable to impersonate users/ LLAP or Hive CNF issue)
due to missing proxy configs. (Mingjie Tang via Swapan Shridhar).


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

Branch: refs/heads/branch-3.0-ams
Commit: 12c9ca7e2fafd092149081971bcfcbbb1e49adf4
Parents: 4c49b4b
Author: Swapan Shridhar <sshridhar@hortonworks.com>
Authored: Mon Sep 25 15:37:41 2017 -0700
Committer: Swapan Shridhar <sshridhar@hortonworks.com>
Committed: Mon Sep 25 15:37:41 2017 -0700

----------------------------------------------------------------------
 .../main/resources/stacks/ODPi/2.0/services/stack_advisor.py  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/12c9ca7e/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/stack_advisor.py
b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/stack_advisor.py
index 5f70db2..418d0c0 100755
--- a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/stack_advisor.py
+++ b/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")
 


Mime
View raw message