<?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: Divide file in nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224736#M186600</link>
    <description>&lt;P&gt;Files on FTP server. I got them with ListFTP and FetchFTP.&lt;BR /&gt;Then I use RouteText(I think) to filter them by name.&lt;BR /&gt;And after it I need to parsing data with divide into parts(with SplitContent, I'll try).&lt;BR /&gt;And unload data on sql server with PutDatabaseRecord.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 19:26:44 GMT</pubDate>
    <dc:creator>vscherbakov</dc:creator>
    <dc:date>2018-06-20T19:26:44Z</dc:date>
    <item>
      <title>Divide file in nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224732#M186596</link>
      <description>&lt;P&gt;I've got a data file that needs to be divided.&lt;BR /&gt;Inside the text file, the sections are divided: &lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;# @ - the beginning of the section with data, &lt;/LI&gt;&lt;LI&gt;# $ is the start of the data block,&lt;/LI&gt;&lt;LI&gt;Next # means the end of the Section.&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How can I do it?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 23:43:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224732#M186596</guid>
      <dc:creator>vscherbakov</dc:creator>
      <dc:date>2018-06-19T23:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Divide file in nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224733#M186597</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/83297/vscherbakov.html" nodeid="83297"&gt;@Vladislav Shcherbakov&lt;/A&gt;!&lt;BR /&gt;You can try to use the ExtratText processor and add a parameter for each value that you wanna get using Regex. &lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.ExtractText/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.ExtractText/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 03:46:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224733#M186597</guid>
      <dc:creator>vmurakami</dc:creator>
      <dc:date>2018-06-20T03:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Divide file in nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224734#M186598</link>
      <description>&lt;P&gt;If you could show me an example, it would be rly nice, 'cause I don't quite understand the principle of action... Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 17:32:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224734#M186598</guid>
      <dc:creator>vscherbakov</dc:creator>
      <dc:date>2018-06-20T17:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Divide file in nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224735#M186599</link>
      <description>&lt;P&gt;Is your data on HDFS? If so, you would use the GetHDFS processor to load your file into a FlowFile. If your data is on your local NiFi node, then you would use a GetFile processor to load the file. &lt;/P&gt;&lt;P&gt;Next if you want to split by newline, you could use SplitText processor to split your file into multiple FlowFiles. If you only want to split by your '#@' and '#$' you can use the SplitContent processor. That processor will split based on a sequence of text characters (set the 'Byte Sequence Format' to 'text') so you can put in '#@' to split on. I'm not sure exactly how you'd like to divide your data but that should give you a starting point. You can chain multiple of these SplitContent processors together to split on multiple character sequences. Ultimately, your one file on disk will be converted into multiple FlowFiles in NiFi.&lt;/P&gt;&lt;P&gt;Take a look at the SplitContent processor for more info: &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.6.0/org.apache.nifi.processors.standard.SplitContent/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.6.0/org.apache.nifi.processors.standard.SplitContent/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 19:15:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224735#M186599</guid>
      <dc:creator>anarasimham</dc:creator>
      <dc:date>2018-06-20T19:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Divide file in nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224736#M186600</link>
      <description>&lt;P&gt;Files on FTP server. I got them with ListFTP and FetchFTP.&lt;BR /&gt;Then I use RouteText(I think) to filter them by name.&lt;BR /&gt;And after it I need to parsing data with divide into parts(with SplitContent, I'll try).&lt;BR /&gt;And unload data on sql server with PutDatabaseRecord.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 19:26:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Divide-file-in-nifi/m-p/224736#M186600</guid>
      <dc:creator>vscherbakov</dc:creator>
      <dc:date>2018-06-20T19:26:44Z</dc:date>
    </item>
  </channel>
</rss>

