瀏覽代碼

HADOOP-4705. Grant read permissions for files and directories created by HOD. Contributed by Peeyush Bishnoi.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@721381 13f79535-47bb-0310-9956-ffa450edef68
Hemanth Yamijala 16 年之前
父節點
當前提交
15ddf9b16b
共有 2 個文件被更改,包括 10 次插入1 次删除
  1. 4 1
      src/contrib/hod/CHANGES.txt
  2. 6 0
      src/contrib/hod/bin/hodring

+ 4 - 1
src/contrib/hod/CHANGES.txt

@@ -8,11 +8,14 @@ Trunk (unreleased changes)
 
   IMPROVEMENTS
 
+    HADOOP-4705. Grant read permissions for files/directories
+    created by HOD. (Peeyush Bishnoi via yhemanth)
+
   OPTIMIZATIONS
 
   BUG FIXES
 
-Release 0.19.0 - Unreleased
+Release 0.19.0 - 2008-11-18
 
   INCOMPATIBLE CHANGES
 

+ 6 - 0
src/contrib/hod/bin/hodring

@@ -141,6 +141,12 @@ defList = { 'hodring' : (
 
 if __name__ == '__main__':
 
+  # pbsdsh sets the umask of the process it launches to 0077. This prevents 
+  # read access to other processes, like chukwa, to read files created by the
+  # hadoop processes, like the job history files. Resetting the umask to
+  # address this issue
+  os.umask(0022)
+
   confDef = definition()
   confDef.add_defs(defList)
   hodRingOptions = options(confDef, "./%s [OPTIONS]" % myName, VERSION)