[
https://issues.apache.org/jira/browse/SLIDER-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14134261#comment-14134261
]
Steve Loughran commented on SLIDER-429:
---------------------------------------
This should be picked up from the {{doAs()]} chain
https://github.com/apache/incubator-slider/blob/develop/slider-core/src/main/java/org/apache/slider/core/launch/AbstractLauncher.java#L204
{code}
String userName = UserGroupInformation.getCurrentUser().getUserName();
env.put(SliderKeys.HADOOP_USER_NAME, userName);
{code}
It should be working. How about I add some logging at the debug level to see
what env vars are being passed down?
> allow API users of slider to set the HADOOP_USER_NAME of the launched AM
> ------------------------------------------------------------------------
>
> Key: SLIDER-429
> URL: https://issues.apache.org/jira/browse/SLIDER-429
> Project: Slider
> Issue Type: Improvement
> Components: client
> Affects Versions: Slider 0.60
> Reporter: Srimanth Gunturi
> Assignee: Steve Loughran
>
> even when trying to launch slider apps in a doAs clause, the AM is coming up
> without access to the desired bits of HDFS.
> This is because it is being picked up from
> UserGroupInformation.getCurrentUser() and this may not be the right one
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)