You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Manoj Samel (JIRA)" <ji...@apache.org> on 2017/03/10 00:34:37 UTC
[jira] [Comment Edited] (SLIDER-1114) Provide option to run
components as different user(s)
[ https://issues.apache.org/jira/browse/SLIDER-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904142#comment-15904142 ]
Manoj Samel edited comment on SLIDER-1114 at 3/10/17 12:33 AM:
---------------------------------------------------------------
Last year I had reported that the implementation of this feature is working (see attached document); except that stop component was not working. Since my last update, I changed the C implementation a bit on how the component runs as user to fix the broken stop command. The stop component command is working as well. I have updated the attached document.
was (Author: manojsamel):
Last year I had reported that the implementation of this feature is working (see attached document); except that stop component was not working. I changed the C implementation a bit on how the component runs as user to fix the broken stop command. Now the stop component command is working as well. I have updated the attached document.
> Provide option to run components as different user(s)
> -----------------------------------------------------
>
> Key: SLIDER-1114
> URL: https://issues.apache.org/jira/browse/SLIDER-1114
> Project: Slider
> Issue Type: New Feature
> Affects Versions: Slider 0.80
> Reporter: Manoj Samel
> Assignee: Manoj Samel
> Fix For: Slider 1.0.0
>
> Attachments: run_components_as_different_users.pdf
>
>
> Environment is slider .80 on Hadoop 2.6 secured cluster
> A component is launched for each distinct user of the service (via upgrade). E.g. when user A accesses service, do a "upgrade" and create a component for user A. When user B comes, create another component for user B etc.
> At present, all of these components are launched & run as single linux user - this is the user who launches slider AM.
> Security needs may demand that each component be run as its own linux user. This ask is similar to how secured Hadoop cluster launches MR jobs for user using user's login
> Expected ask is as follows ...
> Launch slider AM as user "admin"
> Run component for user A as user A's uid and gid
> Run component for user B as user B's uid and gid
> It seems this was thought about and then commented out in some version
> In version .80; resource_management/core/resources/system.py, I noticed that class Execute can take a parameter "user". Its not clear if and how this could be used. In core/shell.py, the logic around "user" is commented out with comment " Do not su to the supplied user"
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)