hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r683639 - in /hadoop/core/trunk: CHANGES.txt src/mapred/org/apache/hadoop/mapred/JobClient.java
Date Thu, 07 Aug 2008 16:05:17 GMT
Author: johan
Date: Thu Aug  7 09:05:17 2008
New Revision: 683639

URL: http://svn.apache.org/viewvc?rev=683639&view=rev
Log:
HADOOP-3892. Include unix group name in JobConf. (Matei Zaharia via johan)

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobClient.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=683639&r1=683638&r2=683639&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Aug  7 09:05:17 2008
@@ -145,6 +145,8 @@
 
     HADOOP-3860. NNThroughputBenchmark is extended with rename and delete 
     benchmarks. (shv)
+    
+    HADOOP-3892. Include unix group name in JobConf. (Matei Zaharia via johan)
 
   OPTIMIZATIONS
 

Modified: hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobClient.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobClient.java?rev=683639&r1=683638&r2=683639&view=diff
==============================================================================
--- hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobClient.java (original)
+++ hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobClient.java Thu Aug  7 09:05:17
2008
@@ -669,6 +669,9 @@
 
     // Set the user's name and working directory
     job.setUser(ugi.getUserName());
+    if (ugi.getGroupNames().length > 0) {
+      job.set("group.name", ugi.getGroupNames()[0]);
+    }
     if (job.getWorkingDirectory() == null) {
       job.setWorkingDirectory(fs.getWorkingDirectory());          
     }



Mime
View raw message