<?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: Apache Nifi : using Sqoop export command in execute processor ,will it work? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Nifi-using-Sqoop-export-command-in-execute-processor/m-p/232483#M67113</link>
    <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/13950/dheervijjiraghu.html" nodeid="13950"&gt;@Venkata Sudheer Kumar M&lt;/A&gt; .You rightly pointed the issue. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Command was executing by default as root user.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resolution:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I later updated the property under Nifi conf folder  in the file bootstrap.conf as below&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;run.as:hadoop&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The command execution was now as &lt;STRONG&gt;hadoop&lt;/STRONG&gt; user and it ran successfully.&lt;/P&gt;&lt;P&gt;Sqoop export is invokable via nifi execute processor.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 15:28:29 GMT</pubDate>
    <dc:creator>ManishaJain</dc:creator>
    <dc:date>2017-08-23T15:28:29Z</dc:date>
    <item>
      <title>Apache Nifi : using Sqoop export command in execute processor ,will it work?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Nifi-using-Sqoop-export-command-in-execute-processor/m-p/232481#M67111</link>
      <description>&lt;P&gt;I have configured an Execute Processor with the below :&lt;/P&gt;&lt;P&gt;configuration being :&lt;BR /&gt;1.command = /home/hadoop/software/sqoop-1.4.6.bin__hadoop-0.23/bin/sqoop-export&lt;BR /&gt;giving the path till sqoop-export file &lt;BR /&gt;2.Command Arguments = --connect jdbc:mysql://localhost/test --username root --password root --table test --export-dir /home/hadoop/input.csv&lt;BR /&gt;&lt;BR /&gt;using mysql DB&lt;/P&gt;&lt;P&gt;Sqoop execution begins ,but i see the below error in&lt;/P&gt;&lt;P&gt;nifi logs :SplitAvro : IO Exception : Not a data file&lt;/P&gt;&lt;P&gt;hadoop name node logs :Permission denied: user=root, access=WRITE, inode="/user":hdfs:supergroup:dr&lt;/P&gt;&lt;P&gt;Has anyone tried using sqoop via nifi ? &lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:41:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Nifi-using-Sqoop-export-command-in-execute-processor/m-p/232481#M67111</guid>
      <dc:creator>ManishaJain</dc:creator>
      <dc:date>2017-08-23T11:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi : using Sqoop export command in execute processor ,will it work?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Nifi-using-Sqoop-export-command-in-execute-processor/m-p/232482#M67112</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/41157/manishajainorg.html" nodeid="41157"&gt;@manisha jain&lt;/A&gt;&lt;P&gt;It looks like you are running the command with the &lt;STRONG&gt;root &lt;/STRONG&gt;user for which it is checking for the home directory availability for this user (root) under HDFS.&lt;/P&gt;&lt;P&gt;The error: &lt;STRONG&gt;Permission denied: user=root, access=WRITE, inode="/user":hdfs:supergroup:dr &lt;/STRONG&gt;signifies that it it trying to access the &lt;STRONG&gt;/user &lt;/STRONG&gt;directory with the access permission as &lt;STRONG&gt;WRITE &lt;/STRONG&gt;for which your user doesn't have access, you can solve this in two ways:&lt;/P&gt;&lt;P&gt;1) run the command with the hdfs user (if you have the permissions)&lt;/P&gt;&lt;P&gt;2) you can get your user created (&lt;STRONG&gt;root &lt;/STRONG&gt;in this case) with the required permissions and run the command.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:59:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Nifi-using-Sqoop-export-command-in-execute-processor/m-p/232482#M67112</guid>
      <dc:creator>dheer_vijji_rag</dc:creator>
      <dc:date>2017-08-23T14:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi : using Sqoop export command in execute processor ,will it work?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Nifi-using-Sqoop-export-command-in-execute-processor/m-p/232483#M67113</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/13950/dheervijjiraghu.html" nodeid="13950"&gt;@Venkata Sudheer Kumar M&lt;/A&gt; .You rightly pointed the issue. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Command was executing by default as root user.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resolution:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I later updated the property under Nifi conf folder  in the file bootstrap.conf as below&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;run.as:hadoop&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The command execution was now as &lt;STRONG&gt;hadoop&lt;/STRONG&gt; user and it ran successfully.&lt;/P&gt;&lt;P&gt;Sqoop export is invokable via nifi execute processor.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:28:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Apache-Nifi-using-Sqoop-export-command-in-execute-processor/m-p/232483#M67113</guid>
      <dc:creator>ManishaJain</dc:creator>
      <dc:date>2017-08-23T15:28:29Z</dc:date>
    </item>
  </channel>
</rss>

