Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

/tmp/hive permission keep updating as per user jobs.

Highlighted

/tmp/hive permission keep updating as per user jobs.

New Contributor

/tmp/hive/ permission keep changing according to user job execution. Initially if it is with hive permissions for first job execution and it is chaning permission to 2nd job say as solr after completing 1st job.

1 REPLY 1

Re: /tmp/hive permission keep updating as per user jobs.

Expert Contributor

@Raghav Mp

HDFS root scratch directory for Hive jobs, which gets created with write all (733) permission. For each connecting user, an HDFS scratch directory ${hive.exec.scratchdir}/ is created with ${hive.scratch.dir.permission}.

To fix this issue, you can set below property in hive-site.xml, this is used for setting values for the entire Hive configuration

 <property>
<name>hive.exec.scratchdir</name>
<value>/tmp/hive</value>
<description>Scratch space for Hive jobs</description> </property>

For more detail: https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration

Please accept the answer you found most useful.

Don't have an account?
Coming from Hortonworks? Activate your account here