[
https://issues.apache.org/jira/browse/SPARK-6558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen resolved SPARK-6558.
------------------------------
Resolution: Fixed
Fix Version/s: 1.4.0
Issue resolved by pull request 5229
[https://github.com/apache/spark/pull/5229]
> Utils.getCurrentUserName returns the full principal name instead of login name
> ------------------------------------------------------------------------------
>
> Key: SPARK-6558
> URL: https://issues.apache.org/jira/browse/SPARK-6558
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 1.3.0
> Reporter: Thomas Graves
> Assignee: Thomas Graves
> Priority: Critical
> Fix For: 1.4.0
>
>
> Utils.getCurrentUserName returns
> UserGroupInformation.getCurrentUser().getUserName() when SPARK_USER isn't
> set. It should return
> UserGroupInformation.getCurrentUser().getShortUserName()
> getUserName() returns the users full principal name (ie [email protected]).
> getShortUserName() returns just the users login name (user1).
> This just happens to work on YARN because the Client code sets:
> env("SPARK_USER") =
> UserGroupInformation.getCurrentUser().getShortUserName()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]