<?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 routeoncontent processor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160497#M36628</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10750/edmundprout.html" nodeid="10750"&gt;@Ed Prout&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;If you don't care about having one FlowFile by line from your input file, I'd suggest you to use RouteText processor with a matching strategy 'starts with' and adding a custom property like 'prefix' with the value '#'. This will create a relationship 'prefix' with all lines starting with # (then you'll want to route the lines for relationship 'unmatched' if you want lines not starting with a #).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 04:34:16 GMT</pubDate>
    <dc:creator>pvillard</dc:creator>
    <dc:date>2016-08-02T04:34:16Z</dc:date>
    <item>
      <title>NiFi routeoncontent processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160494#M36625</link>
      <description>&lt;P&gt;I'm building a nifi flow with the nifi GUI. As part of the flow I have series of flat files I'm ingesting, which contains lines that I don't want in my data flow. These lines all start with the hash/pound symbol #. Any ideas how to filter these lines out? I was thinking a routeoncontent processor, but I'm not sure how to make it filter out lines.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:20:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160494#M36625</guid>
      <dc:creator>edmund_prout</dc:creator>
      <dc:date>2016-08-02T04:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi routeoncontent processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160495#M36626</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/10750/edmundprout.html" nodeid="10750"&gt;@Ed Prout&lt;/A&gt; Take a look at the extractText processor here &lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ExtractText/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ExtractText/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How to use extract processor example is here&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/NIFI/Example+Dataflow+Templates?preview=/57904847/61320129/CsvToJSON.xml" target="_blank"&gt;https://cwiki.apache.org/confluence/display/NIFI/Example+Dataflow+Templates?preview=/57904847/61320129/CsvToJSON.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Additional here is another example to extract text using NiFi&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/NIFI/Example+Dataflow+Templates?preview=/57904847/59211793/simple-httpget-route.template.xml" target="_blank"&gt;https://cwiki.apache.org/confluence/display/NIFI/Example+Dataflow+Templates?preview=/57904847/59211793/simple-httpget-route.template.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:25:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160495#M36626</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-08-02T04:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi routeoncontent processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160496#M36627</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/10750/edmundprout.html"&gt;@Ed Prout&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Split that text file by line using the SplitText processor first: &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SplitText/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SplitText/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then you can exclude the lines you don't using a basic regex.&lt;/P&gt;&lt;P&gt;Good example here: &lt;A href="https://github.com/xmlking/nifi-examples/tree/master/split-route" target="_blank"&gt;https://github.com/xmlking/nifi-examples/tree/master/split-route&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:26:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160496#M36627</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-08-02T04:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi routeoncontent processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160497#M36628</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10750/edmundprout.html" nodeid="10750"&gt;@Ed Prout&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;If you don't care about having one FlowFile by line from your input file, I'd suggest you to use RouteText processor with a matching strategy 'starts with' and adding a custom property like 'prefix' with the value '#'. This will create a relationship 'prefix' with all lines starting with # (then you'll want to route the lines for relationship 'unmatched' if you want lines not starting with a #).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:34:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160497#M36628</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-08-02T04:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi routeoncontent processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160498#M36629</link>
      <description>&lt;P&gt;I went with your answer first Pierre, and it worked. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 03:54:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-routeoncontent-processor/m-p/160498#M36629</guid>
      <dc:creator>edmund_prout</dc:creator>
      <dc:date>2016-08-03T03:54:00Z</dc:date>
    </item>
  </channel>
</rss>

