<?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: Split FlowFile into multiple files based on category with Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Split-FlowFile-into-multiple-files-based-on-category-with/m-p/200082#M162113</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;, thank you very much. It worked perfectly!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 22:03:56 GMT</pubDate>
    <dc:creator>crodriguesfilho</dc:creator>
    <dc:date>2018-02-05T22:03:56Z</dc:date>
    <item>
      <title>Split FlowFile into multiple files based on category with Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Split-FlowFile-into-multiple-files-based-on-category-with/m-p/200080#M162111</link>
      <description>&lt;P&gt;Hello, guys,&lt;/P&gt;&lt;P&gt;I'm trying to use Nifi to split a text file into 2 other files. I just have a problem with that: I need to split them based on their category type.&lt;/P&gt;&lt;P&gt;e.g.&lt;BR /&gt;FlowFile content:&lt;BR /&gt;Some fixed text |1| more text&lt;BR /&gt;Another field      |8| more text&lt;BR /&gt;Last one            |1| more text&lt;/P&gt;&lt;P&gt;With that, I'd like to split this file into, for example:&lt;BR /&gt;first FlowFile:&lt;/P&gt;&lt;P&gt;Some fixed text |1| more text&lt;BR /&gt;Last one             |1| more text&lt;/P&gt;&lt;P&gt;second FlowFile:&lt;/P&gt;&lt;P&gt;Another field      |8| more text&lt;/P&gt;&lt;P&gt;Do you guys have any idea on how to accomplish that using Nifi? I appreciate any help you can provide.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 05:28:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Split-FlowFile-into-multiple-files-based-on-category-with/m-p/200080#M162111</guid>
      <dc:creator>crodriguesfilho</dc:creator>
      <dc:date>2018-02-03T05:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Split FlowFile into multiple files based on category with Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Split-FlowFile-into-multiple-files-based-on-category-with/m-p/200081#M162112</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/62294/crodriguesfilho.html" nodeid="62294" target="_blank"&gt;@Cesar Rodrigues&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Use RouteText Processor (&lt;STRONG&gt;The data is then routed according to these rules, routing each line of the text individually)&lt;/STRONG&gt; and then configure the processor as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Route text Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Routing Strategy&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Route to each matching Property Name&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Matching Strategy&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Contains&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Ignore Leading/Trailing Whitespace&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;true&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Ignore Case&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;true&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Grouping Regular Expression
No value set
flowfile1&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;|1| more text //checks the line having the content and routes to flowfile1 relation&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;flowfile2&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;|8| more text //checks the line having the content and routes to flowfile1 relation&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="56569-routetext.png" style="width: 1779px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17582iD61E1BD542A437ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="56569-routetext.png" alt="56569-routetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Input:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Some fixed text |1| more text
Another field |8| more text
Last one |1| more text&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Output:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Flowfile1:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;as we are checking if the contents having |1| more text so the following lines will routes to flowfile1 relationship&lt;/P&gt;&lt;PRE&gt;Some fixed text |1| more text
Last one |1| more text&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Flowfile2:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;lines having |8| more text will route to this relation&lt;/P&gt;&lt;PRE&gt;Another field |8| more text&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:-&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="56570-flow.png" style="width: 1327px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17583i6CFA0B4AF7A0D46C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="56570-flow.png" alt="56570-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:47:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Split-FlowFile-into-multiple-files-based-on-category-with/m-p/200081#M162112</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T05:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Split FlowFile into multiple files based on category with Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Split-FlowFile-into-multiple-files-based-on-category-with/m-p/200082#M162113</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;, thank you very much. It worked perfectly!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 22:03:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Split-FlowFile-into-multiple-files-based-on-category-with/m-p/200082#M162113</guid>
      <dc:creator>crodriguesfilho</dc:creator>
      <dc:date>2018-02-05T22:03:56Z</dc:date>
    </item>
  </channel>
</rss>

