diff options
author | Thomas Graves <tgraves@apache.org> | 2015-03-29 12:43:30 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2015-03-29 12:43:30 +0100 |
commit | 52ece26b8fb9769f6ed9167e3dffc8b1d7c61b02 (patch) | |
tree | 6c1f69ebab4da64291ccc4f2fc9f27a60ebf3cb0 /docs/monitoring.md | |
parent | e3eb393961051a48ed1cac756ac1928156aa161f (diff) | |
download | spark-52ece26b8fb9769f6ed9167e3dffc8b1d7c61b02.tar.gz spark-52ece26b8fb9769f6ed9167e3dffc8b1d7c61b02.tar.bz2 spark-52ece26b8fb9769f6ed9167e3dffc8b1d7c61b02.zip |
[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 user1CORP.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()
Author: Thomas Graves <tgraves@apache.org>
Closes #5229 from tgravescs/SPARK-6558 and squashes the following commits:
24830bf [Thomas Graves] Utils.getCurrentUserName returns the full principal name instead of login name
Diffstat (limited to 'docs/monitoring.md')
0 files changed, 0 insertions, 0 deletions