<?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: Nifi PutHDFS prepend filename with current date in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196642#M65723</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/286/dwynne.html" nodeid="286"&gt;@Wynner&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks for the suggestion, however i still get the same error with this expression&lt;/P&gt;&lt;PRE&gt;${filename: prepend(${now():format("yyyy-MM-dd-HH:mm:ss")})}&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;ERROR PutHDFS Failed to write to HDFS due to java.lang.IllegalArgumentException: java.net. URISyntaxException:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Relative path in absolute URI: .2017-08-01-11:01:13filename.json&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I am not sure where this error comes from to be honest, plus there is a dot (.) before the date in the created filename in the error message that should not be there according to the expression used to prepend the filename.&lt;/P&gt;&lt;P&gt;Again, the flow is GetHttps --&amp;gt; UpdateAttribute --&amp;gt; PutHDFS  and without any filename manipulations in the 2nd step everything works as it should. Any help is greately appreciated, thanks in advance!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Foivos&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 16:10:56 GMT</pubDate>
    <dc:creator>foivos</dc:creator>
    <dc:date>2017-08-01T16:10:56Z</dc:date>
    <item>
      <title>Nifi PutHDFS prepend filename with current date</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196640#M65721</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to read an API via NiFi at 30secs intervals and place the files to HDFS with filename.json prepended with the current date at each moment ('yyyy-mm-dd HH:mm:ss) but no success. I used GetHTTP processor along with UpdateAttribute to change the filename using expression language. &lt;/P&gt;&lt;P&gt;My attempt for that would be &lt;/P&gt;&lt;PRE&gt;${filename: prepend(${now():format("yyyy-MM-dd HH:mm:ss")})}
&lt;/PRE&gt;&lt;P&gt;however i get a 'Relative path in absolute URI error' and the relationship fails. Otherwise if i remove the filename prepend operation everything works normal and the PutHDFS processor places the files in the specified folder correctly. Really appreciate any help, thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 21:30:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196640#M65721</guid>
      <dc:creator>foivos</dc:creator>
      <dc:date>2017-07-28T21:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutHDFS prepend filename with current date</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196641#M65722</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/24249/foivos.html" nodeid="24249"&gt;@Foivos A&lt;/A&gt;&lt;P&gt;You're seeing that error because there is a blank space in the file name, try doing this:&lt;/P&gt;&lt;PRE&gt;${filename: prepend(${now():format("yyyy-MM-dd-HH:mm:ss")})}&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jul 2017 22:01:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196641#M65722</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2017-07-28T22:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutHDFS prepend filename with current date</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196642#M65723</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/286/dwynne.html" nodeid="286"&gt;@Wynner&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks for the suggestion, however i still get the same error with this expression&lt;/P&gt;&lt;PRE&gt;${filename: prepend(${now():format("yyyy-MM-dd-HH:mm:ss")})}&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;ERROR PutHDFS Failed to write to HDFS due to java.lang.IllegalArgumentException: java.net. URISyntaxException:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Relative path in absolute URI: .2017-08-01-11:01:13filename.json&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I am not sure where this error comes from to be honest, plus there is a dot (.) before the date in the created filename in the error message that should not be there according to the expression used to prepend the filename.&lt;/P&gt;&lt;P&gt;Again, the flow is GetHttps --&amp;gt; UpdateAttribute --&amp;gt; PutHDFS  and without any filename manipulations in the 2nd step everything works as it should. Any help is greately appreciated, thanks in advance!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Foivos&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 16:10:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196642#M65723</guid>
      <dc:creator>foivos</dc:creator>
      <dc:date>2017-08-01T16:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutHDFS prepend filename with current date</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196643#M65724</link>
      <description>&lt;P&gt;I'm pretty sure colons in filenames are considered bad practice - try removing that.  &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The dot could be because it's failing to complete the writing of the file, so it's generating the dot file for writing but can't complete the action. Just a guess without looking at your logs.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 21:25:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196643#M65724</guid>
      <dc:creator>dchaffey</dc:creator>
      <dc:date>2017-08-01T21:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutHDFS prepend filename with current date</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196644#M65725</link>
      <description>&lt;P&gt;Thanks, colons were indeed the problem!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 21:35:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-PutHDFS-prepend-filename-with-current-date/m-p/196644#M65725</guid>
      <dc:creator>foivos</dc:creator>
      <dc:date>2017-08-03T21:35:41Z</dc:date>
    </item>
  </channel>
</rss>

