You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Thomas Graves (JIRA)" <ji...@apache.org> on 2015/03/27 14:40:53 UTC
[jira] [Assigned] (SPARK-6558) Utils.getCurrentUserName returns the
full principal name instead of login name
[ https://issues.apache.org/jira/browse/SPARK-6558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Graves reassigned SPARK-6558:
------------------------------------
Assignee: Thomas Graves
> 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
>
> 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