<?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 Getting erro for GetHDFS nifi processor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214706#M72101</link>
    <description>&lt;P&gt;I am trying
to get files from HDFS directory with apache nifi GetHDFS processor; however, I
am getting the error in the nifi-app.log whenever I try to run the job&lt;/P&gt;&lt;P&gt;Caused by:
java.lang.IllegalArgumentException: Wrong FS: hdfs://XXX:8020/user/sample_b.csv,
expected: file:///&lt;/P&gt;&lt;P&gt;at
org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:649)&lt;/P&gt;&lt;P&gt;Any one has
any idea what is causing the error?&lt;/P&gt;</description>
    <pubDate>Sat, 02 Dec 2017 01:16:11 GMT</pubDate>
    <dc:creator>pallavi_abhang</dc:creator>
    <dc:date>2017-12-02T01:16:11Z</dc:date>
    <item>
      <title>Getting erro for GetHDFS nifi processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214706#M72101</link>
      <description>&lt;P&gt;I am trying
to get files from HDFS directory with apache nifi GetHDFS processor; however, I
am getting the error in the nifi-app.log whenever I try to run the job&lt;/P&gt;&lt;P&gt;Caused by:
java.lang.IllegalArgumentException: Wrong FS: hdfs://XXX:8020/user/sample_b.csv,
expected: file:///&lt;/P&gt;&lt;P&gt;at
org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:649)&lt;/P&gt;&lt;P&gt;Any one has
any idea what is causing the error?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 01:16:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214706#M72101</guid>
      <dc:creator>pallavi_abhang</dc:creator>
      <dc:date>2017-12-02T01:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting erro for GetHDFS nifi processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214707#M72102</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/47508/pallaviabhang.html" nodeid="47508" target="_blank"&gt;@Pallavi Ab&lt;/A&gt;&lt;P&gt;once make sure your file is in the directory and Nifi has permissions to the directory.&lt;/P&gt;&lt;P&gt;I am not sure about your get hdfs configurations, take a look on the below configs and configure your processor same configs in the screenshot shown below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42835-gethdfs.png" style="width: 768px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16391iC86A8CFB1487E2CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42835-gethdfs.png" alt="42835-gethdfs.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Important Property is &lt;STRONG&gt;Keep source file&lt;/STRONG&gt; configure this property as per your needs.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Keep Source File&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;false&lt;/TD&gt;&lt;TD&gt;&lt;UL&gt;&lt;LI&gt;true&lt;/LI&gt;&lt;LI&gt;false&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;TD&gt;Determines whether to delete the file from HDFS after it has been successfully transferred. If true, the file will be fetched repeatedly. This is intended for testing only.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:26:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214707#M72102</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T03:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting erro for GetHDFS nifi processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214708#M72103</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for quick response...I made the changes as suggested by you but now the processor is failing with below error:&lt;/P&gt;&lt;P&gt;Caused by: java.io.IOException: PropertyDescriptor PropertyDescriptor[Directory] has invalid value /user/cmor/kinetica/files/sample_b.csv. The directory does not exist.&lt;/P&gt;&lt;P&gt;Here is how the configuration of the processor looks:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/42836-gethdfs.png"&gt;gethdfs.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 01:56:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214708#M72103</guid>
      <dc:creator>pallavi_abhang</dc:creator>
      <dc:date>2017-12-02T01:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting erro for GetHDFS nifi processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214709#M72104</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47508/pallaviabhang.html" nodeid="47508"&gt;@Pallavi Ab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As per your Logs&lt;/P&gt;&lt;PRE&gt;Caused by: java.io.IOException: PropertyDescriptor PropertyDescriptor[Directory] has invalid value /user/cmor/kinetica/files/sample_b.csv.The directory does not exist.&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you check is the above directory exists in&lt;STRONG&gt; HDFS&lt;/STRONG&gt; by using below command&lt;/P&gt;&lt;PRE&gt;bash# hdfs dfs -test -d /user/cmor/kinetica/files
bash# echo $?
bash# hdfs dfs -test -e /user/cmor/kinetica/files/sample_b.csv
bash# echo $?
//if echo returns 0 file or directory exists
//if echo returns 1 file or directory exists&lt;/PRE&gt;&lt;P&gt;Make sure the path in the Directory property is correct and run the processor again.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Usage of hdfs test command&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;bash# hdfs dfs -test -[defsz] &amp;lt;hdfs-path&amp;gt;&lt;/PRE&gt;
&lt;PRE&gt;Options:&amp;lt;br&amp;gt;-d: f the path is a directory, return 0.&amp;lt;br&amp;gt;-e: if the path exists, return 0.&amp;lt;br&amp;gt;-f: if the path is a file, return 0.&amp;lt;br&amp;gt;-s: if the path is not empty, return 0.&amp;lt;br&amp;gt;-z: if the file is zero length, return 0.&lt;/PRE&gt;&lt;UL&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 02 Dec 2017 02:08:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214709#M72104</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-12-02T02:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting erro for GetHDFS nifi processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214710#M72105</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929" target="_blank"&gt;@Shu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is what I see after running the commands&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42838-hdfsoutput.png" style="width: 632px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16390iE221CA96B086980E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42838-hdfsoutput.png" alt="42838-hdfsoutput.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:26:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214710#M72105</guid>
      <dc:creator>pallavi_abhang</dc:creator>
      <dc:date>2019-08-18T03:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting erro for GetHDFS nifi processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214711#M72106</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47508/pallaviabhang.html" nodeid="47508"&gt;@Pallavi Ab&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I think issue is with &lt;STRONG&gt;hdfs-site.xml and core-site.xml&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;Use the&lt;STRONG&gt; xml's&lt;/STRONG&gt; from &lt;STRONG&gt;/usr/hdp/2.4.2.0-258/hadoop/conf &lt;/STRONG&gt;instead of&lt;STRONG&gt; &lt;/STRONG&gt;&lt;B&gt;/usr/hdp/2.4.2.0-258/etc/hadoop/conf.empty&lt;/B&gt; directory&lt;/P&gt;&lt;PRE&gt;/usr/hdp/2.4.2.0-258/hadoop/conf/hdfs-site.xml&lt;BR /&gt;/usr/hdp/2.4.2.0-258/hadoop/conf/core-site.xml&lt;/PRE&gt;&lt;P&gt;Copy them to another directory and try to use them in the Hadoop configuration resources property in GetHDFS processor.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 02:47:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214711#M72106</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-12-02T02:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting erro for GetHDFS nifi processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214712#M72107</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;; it is running now.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 03:25:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-erro-for-GetHDFS-nifi-processor/m-p/214712#M72107</guid>
      <dc:creator>pallavi_abhang</dc:creator>
      <dc:date>2017-12-02T03:25:18Z</dc:date>
    </item>
  </channel>
</rss>

