<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94978#M8207</link>
    <description>&lt;P&gt;Hi Deepesh, can you shed some light on this?&lt;/P&gt;&lt;P&gt;Does the workaround have to be like oozie-hive-site.xml, or rename to any name is ok?&lt;/P&gt;&lt;P&gt;I've tried renaming to hive-config.xml but no luck.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2015 07:48:20 GMT</pubDate>
    <dc:creator>vjiang</dc:creator>
    <dc:date>2015-10-06T07:48:20Z</dc:date>
    <item>
      <title>Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94976#M8205</link>
      <description>&lt;P&gt;Oozie HIve action failed&lt;/P&gt;&lt;PRE&gt;Oozie Hive action configuration 
================================================================= 


Using action configuration file /hadoop/data01/hadoop/yarn/local/usercache/hadoopdev/appcache/application_1443111597609_2691/container_1443111597609_2691_01_000002/action.xml 
------------------------ 
Setting env property for mapreduce.job.credentials.binary to: /hadoop/data01/hadoop/yarn/local/usercache/hadoopdev/appcache/application_1443111597609_2691/container_1443111597609_2691_01_000002/container_tokens 
------------------------ 
------------------------ 
Setting env property for tez.credentials.path to: /hadoop/data01/hadoop/yarn/local/usercache/hadoopdev/appcache/application_1443111597609_2691/container_1443111597609_2691_01_000002/container_tokens 
------------------------ 


&amp;lt;&amp;lt;&amp;lt; Invocation of Main class completed &amp;lt;&amp;lt;&amp;lt; 


Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.HiveMain], main() threw exception, hive-site.xml (Permission denied) 
java.io.FileNotFoundException: hive-site.xml (Permission denied) 
at java.io.FileOutputStream.open(Native Method) 
at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:221) 
at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:110) 
at org.apache.oozie.action.hadoop.HiveMain.setUpHiveSite(HiveMain.java:166) 
at org.apache.oozie.action.hadoop.HiveMain.run(HiveMain.java:196) 
at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:38) 
at org.apache.oozie.action.hadoop.HiveMain.main(HiveMain.java:66) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
at java.lang.reflect.Method.invoke(Method.java:606) 
at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:225) 
at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54) 
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430) 
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:342) 
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168) 
at java.security.AccessController.doPrivileged(Native Method) 
at javax.security.auth.Subject.doAs(Subject.java:415) 
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1594) 
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163) 


Oozie Launcher failed, finishing Hadoop job gracefully 
&lt;/PRE&gt;&lt;P&gt;Oozie action is configured like this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;action name="HivePartitionAction"&amp;gt; 
&amp;lt;hive xmlns="uri:oozie:hive-action:0.3"&amp;gt; 
&amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt; 
&amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt; 
&amp;lt;job-xml&amp;gt;script/hive-site.xml&amp;lt;/job-xml&amp;gt; 
&amp;lt;job-xml&amp;gt;script/xasecure-audit.xml&amp;lt;/job-xml&amp;gt; 
&amp;lt;job-xml&amp;gt;script/xasecure-hive-security.xml&amp;lt;/job-xml&amp;gt; 
&amp;lt;configuration&amp;gt; 
&amp;lt;property&amp;gt; 
&amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt; 
&amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt; 
&amp;lt;/property&amp;gt; 
&amp;lt;/configuration&amp;gt; 
&amp;lt;script&amp;gt;script/addPartition.sql&amp;lt;/script&amp;gt; 
&amp;lt;file&amp;gt;script/xasecure-audit.xml&amp;lt;/file&amp;gt; 
&amp;lt;file&amp;gt;script/xasecure-hive-security.xml&amp;lt;/file&amp;gt; 
&amp;lt;file&amp;gt;script/xasecure-policymgr-ssl.xml&amp;lt;/file&amp;gt; 
&amp;lt;file&amp;gt;script/hive-site.xml&amp;lt;/file&amp;gt; 
&amp;lt;/hive&amp;gt; 
&amp;lt;ok to="end"/&amp;gt; 
&amp;lt;error to="kill"/&amp;gt; 
&amp;lt;/action&amp;gt; 
&lt;/PRE&gt;&lt;P&gt;-- and the files exist OK in the /script subdirectory of the workflow directory. The files have read/write permission for all users. &lt;/P&gt;&lt;P&gt;-- 'hive-site.xml' under /etc/oozie/conf/action-conf/hive is owned by oozie user and set permission 644&lt;/P&gt;&lt;P&gt;Can anyone advise? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:26:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94976#M8205</guid>
      <dc:creator>vjiang</dc:creator>
      <dc:date>2015-10-06T06:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94977#M8206</link>
      <description>&lt;P&gt;I think it should have worked, anyways a workaround you could try is to rename hive-site.xml to oozie-hive-site.xml under script directory and use that path in the workflow xml.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:38:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94977#M8206</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-06T06:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94978#M8207</link>
      <description>&lt;P&gt;Hi Deepesh, can you shed some light on this?&lt;/P&gt;&lt;P&gt;Does the workaround have to be like oozie-hive-site.xml, or rename to any name is ok?&lt;/P&gt;&lt;P&gt;I've tried renaming to hive-config.xml but no luck.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 07:48:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94978#M8207</guid>
      <dc:creator>vjiang</dc:creator>
      <dc:date>2015-10-06T07:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94979#M8208</link>
      <description>&lt;P&gt;Any name other than hive-site.xml should have potentially worked. Will update here if I think of anything else. One question (maybe a stupid one) but have you uploaded this on HDFS after changes?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 07:56:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94979#M8208</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-06T07:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94980#M8209</link>
      <description>&lt;P&gt;AFAIK, hive-site.xml file can be uploaded to HDFS and used with same name. Here is an Falcon project I created that does the same. &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sainib/hadoop-data-pipeline" target="_blank"&gt;https://github.com/sainib/hadoop-data-pipeline&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The workflow defines the path to the hive-site.xml using a param like this - &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sainib/hadoop-data-pipeline/blob/master/falcon/workflow/workflow.xml#L95" target="_blank"&gt;https://github.com/sainib/hadoop-data-pipeline/blob/master/falcon/workflow/workflow.xml#L95&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; the param is defined in the process entity file like this - &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sainib/hadoop-data-pipeline/blob/master/falcon/process/processData.xml#L31" target="_blank"&gt;https://github.com/sainib/hadoop-data-pipeline/blob/master/falcon/process/processData.xml#L31&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am wondering if Falcon is looking for the hive-site xml where it should be or where you think it should. Can you try with the absolute path of the file on HDFS and give it a try? &lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 09:46:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94980#M8209</guid>
      <dc:creator>bsaini</dc:creator>
      <dc:date>2015-10-06T09:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94981#M8210</link>
      <description>&lt;P&gt;I faced similar issues and asked the same questions: &lt;A href="http://community.hortonworks.com/questions/801/oozie-hive-action-hive-sitexml-permission-denied.html" target="_blank"&gt;http://community.hortonworks.com/questions/801/oozie-hive-action-hive-sitexml-permission-denied.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not received any response yet, but  we can reach out to Engg team. &lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 23:13:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94981#M8210</guid>
      <dc:creator>grajagopal</dc:creator>
      <dc:date>2015-10-06T23:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94982#M8211</link>
      <description>&lt;P&gt;One more thing you can try is to give the absolute path to the hive-site.xml in job-xml tag.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 00:30:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94982#M8211</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-07T00:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94983#M8212</link>
      <description>&lt;P&gt;I forgot to mention that Ranger (XA secure) 3.5 is installed in this cluster.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 05:01:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94983#M8212</guid>
      <dc:creator>vjiang</dc:creator>
      <dc:date>2015-10-07T05:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94984#M8213</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/120/vjiang.html" nodeid="120"&gt;@Vincent Jiang&lt;/A&gt;&lt;P&gt; here's a working &lt;A href="https://github.com/dbist/oozie/tree/master/apps/hcatalog"&gt;sample&lt;/A&gt; using hive-site.xml with pig script, it can just as well be hive.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 22:37:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94984#M8213</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-02T22:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94985#M8214</link>
      <description>&lt;P&gt;
&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/120/vjiang.html" nodeid="120"&gt;@Vincent Jiang&lt;/A&gt; please accept best answer or provide your own solution.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 22:38:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94985#M8214</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-02T22:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Oozie Launcher threw exception, hive-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94986#M8215</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/120/vjiang.html" nodeid="120"&gt;@Vincent Jiang&lt;/A&gt;&lt;P&gt;I have resolved similar issue&lt;/P&gt;&lt;P&gt;Please check - &lt;A href="https://community.hortonworks.com/questions/65860/oozie-workflow-calls-sqoop-import-sql-server-to-hi.html#answer-68743" target="_blank"&gt;https://community.hortonworks.com/questions/65860/oozie-workflow-calls-sqoop-import-sql-server-to-hi.html#answer-68743&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 01:40:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failing-Oozie-Launcher-threw-exception-hive-site-xml/m-p/94986#M8215</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-11-29T01:40:35Z</dc:date>
    </item>
  </channel>
</rss>

