<?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: oozie sqoop error &amp;quot;sqoop-site.xml (permission denied)&amp;quot; in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-sqoop-error-quot-sqoop-site-xml-permission-denied-quot/m-p/37777#M19599</link>
    <description>Just Incase anyone wanted to know, to fix this had to reinstall the oozie share lib directory</description>
    <pubDate>Wed, 24 Feb 2016 10:14:24 GMT</pubDate>
    <dc:creator>dom99</dc:creator>
    <dc:date>2016-02-24T10:14:24Z</dc:date>
    <item>
      <title>oozie sqoop error "sqoop-site.xml (permission denied)"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-sqoop-error-quot-sqoop-site-xml-permission-denied-quot/m-p/37504#M19597</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have recently encountered an error whilst trying to execute a simple sqoop action through oozie. When running I get the error "sqoop-site.xml (permission denied)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched the internet for the same error but have found nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sqoop command works when run independently from oozie.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running the job with all the permissions I should need for the oozie job.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code (with generic names)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Property file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://server.domain.local:8020
jobTracker=server.domain.local:8032
applicationDir=${nameNode}/user/username/sqoop/
oozie.wf.application.path=${applicationDir}
oozie.use.system.libpath=true&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;workflow.xml file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;-&amp;lt;workflow-app name="sqoop-workflow" xmlns="uri:oozie:workflow:0.4"&amp;gt;

-&amp;lt;parameters&amp;gt;
-&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;jobTracker&amp;lt;/name&amp;gt;
&amp;lt;/property&amp;gt;
-&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;nameNode&amp;lt;/name&amp;gt;
&amp;lt;/property&amp;gt;
-&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;applicationDir&amp;lt;/name&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;/parameters&amp;gt;

&amp;lt;start to="sqoop-action"/&amp;gt;

-&amp;lt;action name="sqoop-action"&amp;gt;
 -&amp;lt;sqoop xmlns="uri:oozie:sqoop-action:0.2"&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;command&amp;gt;import --m 1 --connect "jdbc:sqlserver://ServerName:1433;database=Database;username=Username;password=Password" --table MyTable--target-dir /user/hive/warehouse/sqoop/MyTable-- --schema dbo&amp;lt;/command&amp;gt;
 &amp;lt;/sqoop&amp;gt;
 &amp;lt;ok to="success"/&amp;gt;
 &amp;lt;error to="fail"/&amp;gt;
&amp;lt;/action&amp;gt;

-&amp;lt;kill name="fail"&amp;gt;
&amp;lt;message&amp;gt;The Identity Map-Reduce job failed!&amp;lt;/message&amp;gt;
&amp;lt;/kill&amp;gt;
&amp;lt;end name="success"/&amp;gt;

&amp;lt;/workflow-app&amp;gt;&lt;/PRE&gt;&lt;P&gt;Possible causes I can think of is the sqoop element is running with different permissions or running on an instance without sqoop installed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;need help in both diagnosing the problem and advise on how to overcome it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:04:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-sqoop-error-quot-sqoop-site-xml-permission-denied-quot/m-p/37504#M19597</guid>
      <dc:creator>dom99</dc:creator>
      <dc:date>2022-09-16T10:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: oozie sqoop error "sqoop-site.xml (permission denied)"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-sqoop-error-quot-sqoop-site-xml-permission-denied-quot/m-p/37625#M19598</link>
      <description>&lt;P&gt;Update to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen that the sqoop-site.xml (permission denied) failure is actually complaining that it cant find the file with a FileNotFoundException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why this would be the case?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 10:13:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-sqoop-error-quot-sqoop-site-xml-permission-denied-quot/m-p/37625#M19598</guid>
      <dc:creator>dom99</dc:creator>
      <dc:date>2016-02-18T10:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: oozie sqoop error "sqoop-site.xml (permission denied)"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-sqoop-error-quot-sqoop-site-xml-permission-denied-quot/m-p/37777#M19599</link>
      <description>Just Incase anyone wanted to know, to fix this had to reinstall the oozie share lib directory</description>
      <pubDate>Wed, 24 Feb 2016 10:14:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-sqoop-error-quot-sqoop-site-xml-permission-denied-quot/m-p/37777#M19599</guid>
      <dc:creator>dom99</dc:creator>
      <dc:date>2016-02-24T10:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: oozie sqoop error "sqoop-site.xml (permission denied)"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-sqoop-error-quot-sqoop-site-xml-permission-denied-quot/m-p/37778#M19600</link>
      <description>&lt;P&gt;Thank you for sharing how you fixed it&amp;nbsp;dom99. Feel free to mark your last comment as the solution so others in a similar situation can find it easier.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 13:11:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-sqoop-error-quot-sqoop-site-xml-permission-denied-quot/m-p/37778#M19600</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2016-02-24T13:11:01Z</dc:date>
    </item>
  </channel>
</rss>

