<?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: java.io.FileNotFoundException: sqoop-site.xml (Permission denied) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-sqoop-site-xml-Permission/m-p/137668#M27711</link>
    <description>&lt;P&gt;Removing the sqoop-site.xml from that folder also worked for me.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2016 15:30:06 GMT</pubDate>
    <dc:creator>jaimecarodrigue</dc:creator>
    <dc:date>2016-06-28T15:30:06Z</dc:date>
    <item>
      <title>java.io.FileNotFoundException: sqoop-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-sqoop-site-xml-Permission/m-p/137665#M27708</link>
      <description>&lt;P&gt;
	I changed the sqoop meta-store to a MySQL database and meta-connect is working fine. &lt;/P&gt;&lt;P&gt;Also, added the updated sqoop-site.xml with changes made to connection url and password and added it to &lt;/P&gt;&lt;PRE&gt;use/oozie/share/lib/lib_timestamp/sqoop/sqoop-site.xml
&lt;/PRE&gt;&lt;P&gt;Also, created and saved the sqoop jobs and these saved jobs are being run from oozie workflow. &lt;/P&gt;&lt;P&gt;Now, on running oozie workflow, I am getting an error that says, &lt;/P&gt;&lt;P&gt;Why is it not able to find sqoop-site.xml?&lt;/P&gt;&lt;P&gt;I though added sqoop-site.xml to user/oozie/share/lib/sqoop folder after updating it, it never was in there before either. &lt;/P&gt;&lt;P&gt;What could be the reason and how do I fix this?&lt;/P&gt;&lt;P&gt;Log Type: stderr&lt;/P&gt;&lt;P&gt;Log Upload Time: Mon May 09 10:54:39 +0530 2016&lt;/P&gt;&lt;P&gt;Log Length: 1868&lt;/P&gt;&lt;PRE&gt;Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.SqoopMain], main() threw exception, sqoop-site.xml (Permission denied)
java.io.FileNotFoundException: sqoop-site.xml (Permission denied)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)
	at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:101)
	at org.apache.oozie.action.hadoop.SqoopMain.setUpSqoopSite(SqoopMain.java:84)
	at org.apache.oozie.action.hadoop.SqoopMain.run(SqoopMain.java:155)
	at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:47)
	at org.apache.oozie.action.hadoop.SqoopMain.main(SqoopMain.java:46)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:241)
	at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:453)
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
	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:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
	at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.impl.MetricsSystemImpl).&lt;/PRE&gt;&lt;P&gt;This is how I am running my sqoop jobs in oozie:&lt;/P&gt;&lt;PRE&gt;  &amp;lt;action name="fabricinventoryimport"&amp;gt;
              &amp;lt;sqoop xmlns="uri:oozie:sqoop-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;command&amp;gt;
                 job --meta-connect jdbc:mysql://FQDN:3306/sqoop --exec inventory
               &amp;lt;/command&amp;gt;
                &amp;lt;/sqoop&amp;gt;
&amp;lt;/action&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2016 12:34:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-sqoop-site-xml-Permission/m-p/137665#M27708</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-09T12:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException: sqoop-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-sqoop-site-xml-Permission/m-p/137666#M27709</link>
      <description>&lt;P&gt;could you please try adding &amp;lt;job-xml&amp;gt;sqoop-site.xml&amp;lt;/job-xml&amp;gt; into your action and see whether it work.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 13:04:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-sqoop-site-xml-Permission/m-p/137666#M27709</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-05-09T13:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException: sqoop-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-sqoop-site-xml-Permission/m-p/137667#M27710</link>
      <description>&lt;P&gt;removed sqoop-site.xml from share/lib/sqoop folder and that error seems to have been fixed. &lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 13:11:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-sqoop-site-xml-Permission/m-p/137667#M27710</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-09T13:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException: sqoop-site.xml (Permission denied)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-sqoop-site-xml-Permission/m-p/137668#M27711</link>
      <description>&lt;P&gt;Removing the sqoop-site.xml from that folder also worked for me.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:30:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-sqoop-site-xml-Permission/m-p/137668#M27711</guid>
      <dc:creator>jaimecarodrigue</dc:creator>
      <dc:date>2016-06-28T15:30:06Z</dc:date>
    </item>
  </channel>
</rss>

