<?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 NiFi - ConvertCSVtoAVRO (without inferring schema) - how to rename the output file? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ConvertCSVtoAVRO-without-inferring-schema-how-to-rename/m-p/139096#M52108</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using ConvertCSVtoAVRO transformation in NiFi to obtain an avro file (from local to local address) with a predefined schema.&lt;/P&gt;&lt;P&gt;All the records successfully go through, however I cannot find a place in PutFile block (connected direclty to ConvertCSVtoAVRO) where I can change the filename.&lt;/P&gt;&lt;P&gt;Does anyone know how to do it?&lt;/P&gt;&lt;P&gt;Let's assume I have input.csv and want to obtain output.avro file.&lt;/P&gt;&lt;P&gt;Thanks, Michal&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2017 22:56:17 GMT</pubDate>
    <dc:creator>michal_rudko</dc:creator>
    <dc:date>2017-01-20T22:56:17Z</dc:date>
    <item>
      <title>NiFi - ConvertCSVtoAVRO (without inferring schema) - how to rename the output file?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ConvertCSVtoAVRO-without-inferring-schema-how-to-rename/m-p/139096#M52108</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using ConvertCSVtoAVRO transformation in NiFi to obtain an avro file (from local to local address) with a predefined schema.&lt;/P&gt;&lt;P&gt;All the records successfully go through, however I cannot find a place in PutFile block (connected direclty to ConvertCSVtoAVRO) where I can change the filename.&lt;/P&gt;&lt;P&gt;Does anyone know how to do it?&lt;/P&gt;&lt;P&gt;Let's assume I have input.csv and want to obtain output.avro file.&lt;/P&gt;&lt;P&gt;Thanks, Michal&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 22:56:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ConvertCSVtoAVRO-without-inferring-schema-how-to-rename/m-p/139096#M52108</guid>
      <dc:creator>michal_rudko</dc:creator>
      <dc:date>2017-01-20T22:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - ConvertCSVtoAVRO (without inferring schema) - how to rename the output file?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ConvertCSVtoAVRO-without-inferring-schema-how-to-rename/m-p/139097#M52109</link>
      <description>&lt;P&gt;You can use an UpdateAttribute processor and change the 'filename' attribute.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 22:58:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ConvertCSVtoAVRO-without-inferring-schema-how-to-rename/m-p/139097#M52109</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-01-20T22:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - ConvertCSVtoAVRO (without inferring schema) - how to rename the output file?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ConvertCSVtoAVRO-without-inferring-schema-how-to-rename/m-p/139098#M52110</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15525/michalrudko.html" nodeid="15525"&gt;@Michal R&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;What you are looking for can be achieved with an UpdateAttribute processor, and you just need to update the 'filename' attribute, this is the attribute used by the PutFile processor.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 22:58:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ConvertCSVtoAVRO-without-inferring-schema-how-to-rename/m-p/139098#M52110</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2017-01-20T22:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - ConvertCSVtoAVRO (without inferring schema) - how to rename the output file?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ConvertCSVtoAVRO-without-inferring-schema-how-to-rename/m-p/139099#M52111</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/15525/michalrudko.html" nodeid="15525" target="_blank"&gt;@Michal R&lt;/A&gt;&lt;P&gt;You can use an UpdateAttribute processor to change the filename.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11550-screen-shot-2017-01-20-at-100136-am.png" style="width: 1582px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21867iBF8EEFAEDE8A3486/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11550-screen-shot-2017-01-20-at-100136-am.png" alt="11550-screen-shot-2017-01-20-at-100136-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, this would end up with every file having the same filename.&lt;/P&gt;&lt;P&gt;Assuming each input filename is unique excpet has a .csv extension, you could do the following:

&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11561-screen-shot-2017-01-20-at-100352-am.png" style="width: 1554px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21868iEAC766D1A25A0D3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11561-screen-shot-2017-01-20-at-100352-am.png" alt="11561-screen-shot-2017-01-20-at-100352-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This would essentially replace the .csv extension with .avro while leaving the rest of the original filename unchanged.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:32:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ConvertCSVtoAVRO-without-inferring-schema-how-to-rename/m-p/139099#M52111</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-19T08:32:38Z</dc:date>
    </item>
  </channel>
</rss>

