spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-6558) Utils.getCurrentUserName returns the full principal name instead of login name
Date Sun, 29 Mar 2015 11:44:52 GMT

     [ 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 user1@CORP.COM). 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message