AMBARI-18491. Spark user principal name is not always lowercase in HDP 2.5 
(aonishuk)


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

Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 563124baeef663967ed214fb88f4f6006c5b2623
Parents: 481a542
Author: Andrew Onishuk <[email protected]>
Authored: Thu Sep 29 12:55:25 2016 +0300
Committer: Andrew Onishuk <[email protected]>
Committed: Thu Sep 29 12:55:25 2016 +0300

----------------------------------------------------------------------
 .../src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/563124ba/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json 
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json
index 2d52fb3..934f3c6 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json
@@ -9,7 +9,7 @@
         {
           "name": "sparkuser",
           "principal": {
-            "value": "${spark-env/spark_user}-${cluster_name}@${realm}",
+            "value": 
"${spark-env/spark_user}-${cluster_name|toLower()}@${realm}",
             "type" : "user",
             "configuration": "spark-defaults/spark.history.kerberos.principal",
             "local_username" : "${spark-env/spark_user}"

Reply via email to