Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive, mail # dev - Review Request: HIVE-4487 (Hive does not set explicit permissions on hive.exec.scratchdir)


Copy link to this message
-
Review Request: HIVE-4487 (Hive does not set explicit permissions on hive.exec.scratchdir)
Chaoyu Tang 2013-06-22, 18:11

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/12049/
-----------------------------------------------------------

Review request for hive.
Description
-------

The changes include:
1. a new property hive.scratch.dir.permission with default value 700 to control the permission of dirs created directly under scratchdir (local and hdfs)
2. only the directories directly under hdfs /tmp/hive-{username} or local /tmp/{username} will be set to the permission as specified by above property. These include ones created for the mapred jobs. By doing so,  we will add the protection to newly created dirs/files with minimal code change, and also preserve the permissions of the existing scratchdirs (for back-compatibility).
This addresses bug HIVE-4487.
    https://issues.apache.org/jira/browse/HIVE-4487
Diffs
-----

  common/src/java/org/apache/hadoop/hive/conf/HiveConf.java 73ec6f2
  ql/src/java/org/apache/hadoop/hive/ql/Context.java 5340e99

Diff: https://reviews.apache.org/r/12049/diff/
Testing
-------

Manual tests
Thanks,

Chaoyu Tang