[
https://issues.apache.org/jira/browse/AMBARI-22998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367340#comment-16367340
]
Hudson commented on AMBARI-22998:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-branch-2.6 #614 (See
[https://builds.apache.org/job/Ambari-branch-2.6/614/])
[AMBARI-22998] Wrong user used to execute the Spark/Livy Server service
(rlevas:
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=64bab84fd53a42735c161f9eae63a20aa4a5a35c])
* (edit)
ambari-server/src/main/resources/common-services/SPARK2/2.0.0/package/scripts/params.py
* (edit)
ambari-server/src/main/resources/common-services/SPARK/1.2.1/package/scripts/params.py
* (edit)
ambari-server/src/main/resources/common-services/SPARK2/2.0.0/package/scripts/service_check.py
* (edit)
ambari-server/src/main/resources/common-services/SPARK/1.2.1/package/scripts/service_check.py
[AMBARI-22998] Wrong user used to execute the Spark/Livy Server service
(rlevas:
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=364b5e5dfc1aa5e5e42275adda9df656d81ca225])
* (edit)
ambari-server/src/main/resources/common-services/SPARK/1.2.1/package/scripts/service_check.py
* (edit)
ambari-server/src/main/resources/common-services/SPARK2/2.0.0/package/scripts/service_check.py
> Wrong user used to execute the Spark/Livy Server service check
> --------------------------------------------------------------
>
> Key: AMBARI-22998
> URL: https://issues.apache.org/jira/browse/AMBARI-22998
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.6.0
> Reporter: Robert Levas
> Assignee: Robert Levas
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.6.2, 2.7.0
>
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> {code:title=common-services/SPARK/1.2.1/package/scripts/service_check.py:36}
> livy_kinit_cmd = format("{kinit_path_local} -kt {smoke_user_keytab}
> {smokeuser_principal}; ")
> Execute(livy_kinit_cmd, user=params.livy_user)
> {code}
> Notice the Kerberos identity is for the smoke user, but the exec is for the
> livy user. This will replace the livy user's interactive Kerberos ticket
> cache.
> This should be
> {code}
> smoke_user_kinit_cmd = format("{kinit_path_local} -kt {smoke_user_keytab}
> {smokeuser_principal}; ")
> Execute(smoke_user_kinit_cmd, user=params.smoke_user)
> {code}
> Where {{smoke_user}} is
> {code}
> smoke_user = config['configurations']['cluster-env']['smokeuser']
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)