hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1079235 - in /hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred: ACLsManager.java JobACLsManager.java
Date Tue, 08 Mar 2011 05:58:53 GMT
Author: omalley
Date: Tue Mar  8 05:58:52 2011
New Revision: 1079235

URL: http://svn.apache.org/viewvc?rev=1079235&view=rev
Log:
commit 1c5def214ce6f935ad654a7e749ec088a7bb99f0
Author: Krishna Ramachandran <ramach@yahoo-inc.com>
Date:   Thu Dec 23 07:23:52 2010 -0800

    Fix Ticket 4209754
    Make ACLsManager APIs public for access from yarn components
    change YAHOO-CHANGES.txt
    
    +++ b/YAHOO-CHANGES.txt
    +  : change ACLsManager API public - for YARN access
    +

Modified:
    hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/ACLsManager.java
    hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/JobACLsManager.java

Modified: hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/ACLsManager.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/ACLsManager.java?rev=1079235&r1=1079234&r2=1079235&view=diff
==============================================================================
--- hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/ACLsManager.java
(original)
+++ hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/ACLsManager.java
Tue Mar  8 05:58:52 2011
@@ -34,7 +34,7 @@ import org.apache.hadoop.security.author
  * QueueManager for queue operations.
  */
 @InterfaceAudience.Private
-class ACLsManager {
+public class ACLsManager {
 
   // MROwner(user who started this mapreduce cluster)'s ugi
   private final UserGroupInformation mrOwner;
@@ -46,7 +46,7 @@ class ACLsManager {
   
   private final boolean aclsEnabled;
 
-  ACLsManager(Configuration conf, JobACLsManager jobACLsManager,
+  public ACLsManager(Configuration conf, JobACLsManager jobACLsManager,
       QueueManager queueManager) throws IOException {
 
     mrOwner = UserGroupInformation.getCurrentUser();
@@ -58,15 +58,15 @@ class ACLsManager {
     this.queueManager = queueManager;
   }
 
-  UserGroupInformation getMROwner() {
+  public UserGroupInformation getMROwner() {
     return mrOwner;
   }
 
-  String getSuperGroup() {
+  public String getSuperGroup() {
     return superGroup;
   }
 
-  JobACLsManager getJobACLsManager() {
+  public JobACLsManager getJobACLsManager() {
     return jobACLsManager;
   }
 
@@ -76,7 +76,7 @@ class ACLsManager {
    *      mapreduce.cluster.permissions.supergroup.
    * @return true, if user is an admin
    */
-  boolean isMRAdmin(UserGroupInformation callerUGI) {
+  public boolean isMRAdmin(UserGroupInformation callerUGI) {
     if (mrOwner.getShortUserName().equals(callerUGI.getShortUserName())) {
       return true;
     }
@@ -108,7 +108,7 @@ class ACLsManager {
    * @param operation  the operation for which authorization is needed
    * @throws AccessControlException
    */
-   void checkAccess(JobInProgress job, UserGroupInformation callerUGI,
+   public void checkAccess(JobInProgress job, UserGroupInformation callerUGI,
        Operation operation) throws AccessControlException {
 
     String queue = job.getProfile().getQueueName();

Modified: hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/JobACLsManager.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/JobACLsManager.java?rev=1079235&r1=1079234&r2=1079235&view=diff
==============================================================================
--- hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/JobACLsManager.java
(original)
+++ hadoop/mapreduce/branches/yahoo-merge/src/java/org/apache/hadoop/mapred/JobACLsManager.java
Tue Mar  8 05:58:52 2011
@@ -28,7 +28,7 @@ import org.apache.hadoop.security.UserGr
 import org.apache.hadoop.security.authorize.AccessControlList;
 
 @InterfaceAudience.Private
-class JobACLsManager {
+public class JobACLsManager {
 
   JobConf conf;
 
@@ -36,7 +36,7 @@ class JobACLsManager {
     this.conf = conf;
   }
 
-  boolean areACLsEnabled() {
+  public boolean areACLsEnabled() {
     return conf.getBoolean(MRConfig.MR_ACLS_ENABLED, false);
   }
 
@@ -85,7 +85,7 @@ class JobACLsManager {
    * @param jobACL
    * @throws AccessControlException
    */
-  boolean checkAccess(UserGroupInformation callerUGI,
+  public boolean checkAccess(UserGroupInformation callerUGI,
       JobACL jobOperation, String jobOwner, AccessControlList jobACL) {
 
     String user = callerUGI.getShortUserName();



Mime
View raw message