GitHub user tgravescs opened a pull request:

    https://github.com/apache/spark/pull/5229

    [SPARK-6558] Utils.getCurrentUserName returns the full principal name 
instead of login name

    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()

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tgravescs/spark SPARK-6558

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5229.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5229
    
----
commit 24830bf7338817e56ef33639e549ffd5869ad491
Author: Thomas Graves <[email protected]>
Date:   2015-03-27T13:37:53Z

    Utils.getCurrentUserName returns the full principal name instead of login 
name

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to