hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jay vyas (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-1952) getRunAsUser should be overridable
Date Wed, 16 Apr 2014 19:20:15 GMT
jay vyas created YARN-1952:

             Summary: getRunAsUser should be overridable 
                 Key: YARN-1952
                 URL: https://issues.apache.org/jira/browse/YARN-1952
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: nodemanager
            Reporter: jay vyas

The getRunAsUser implementation is package private, but there is no comment stating why. 

* I suggest we open it up so that we can override it without having to write code in a special
hadoop namespace.


* Lets provide a clear comment about why its package private, if there is a good reason. 

Here is my justification for making the method public. 

There are certain implementations where we want more nuanced LCE behaviour.  

In one case, we might want to allow users to override the behaviour of YARN-1235 (i.e. in
highly secured clusters) 

 getRunAsUser(String u){ return u ; } 

Or maybe I'd want to route different users to different super implementations: 

mary,tom,sally -> execute using analytics1
joe,bob,kim -> execute using analytics2
jim,cara -> nobody 

This message was sent by Atlassian JIRA

View raw message