Friday, 7 November 2014

Hive Action hive-site.xml (Permission denied) in Oozie in CDH5.1.2

When you use Hive Action in Oozie in CDH5.1.2, there is a little difference with CHD4.7.
Error: java.io.FileNotFoundException: hive-site.xml (Permission denied)

Solution:

If you wish to pass a hive-site.xml to the tasks for a Hive action,
please rename it to something else, say "hive-oozie-site.xml".
<job-xml>hive-oozie-site.xml</job-xml>

The Hive action will try to build its own merged "hive-site.xml" and if one
already exists, this error comes up in secure environments due to
dist-cache and task runtime user differences.


This change makes the configuration file name unique and oozie can find it properly in the classpath. Previously you had multiple files with the same name and oozie was unable to resolve it to the correct file.

https://groups.google.com/a/cloudera.org/forum/#!topic/cdh-user/P5WxTak3xIk
https://groups.google.com/a/cloudera.org/forum/#!searchin/cdh-user/hive-site.xml$20%28Permission$20denied%29|sort:relevance/cdh-user/PsAElirMLxg/AzwqdHNPzxQJ
http://blog.spryinc.com/2013/06/hdfs-permissions-overcoming-permission.html
https://github.com/cloudera/hue/commit/8e81051ee71237af17441fa2cbf42669a56e637d

No comments:

Post a Comment