<?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 How to replace/add some text for a matching patter in Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-replace-add-some-text-for-a-matching-patter-in-Nifi/m-p/374278#M241932</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any processor to add some text/characters to each line in the flowfile in Nifi. Replace text seems to be more complicated given that the partiton value keeps changing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compute incremental stats mydb.mytable partition (date=2023-07-21);&lt;/P&gt;&lt;P&gt;compute incremental stats mydb.mytable partition (name=abc);&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;compute incremental stats mydb.mytable partition (date='2023-07-21');&lt;/P&gt;&lt;P&gt;compute incremental stats mydb.mytable partition (name='abc');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;date=2023-07-21 comes as a complete string from the sys.partitions.part_name table in hive. We will need to add '' to the date.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 10:49:00 GMT</pubDate>
    <dc:creator>brajeshreddy</dc:creator>
    <dc:date>2023-07-21T10:49:00Z</dc:date>
    <item>
      <title>How to replace/add some text for a matching patter in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-replace-add-some-text-for-a-matching-patter-in-Nifi/m-p/374278#M241932</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any processor to add some text/characters to each line in the flowfile in Nifi. Replace text seems to be more complicated given that the partiton value keeps changing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compute incremental stats mydb.mytable partition (date=2023-07-21);&lt;/P&gt;&lt;P&gt;compute incremental stats mydb.mytable partition (name=abc);&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;compute incremental stats mydb.mytable partition (date='2023-07-21');&lt;/P&gt;&lt;P&gt;compute incremental stats mydb.mytable partition (name='abc');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;date=2023-07-21 comes as a complete string from the sys.partitions.part_name table in hive. We will need to add '' to the date.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 10:49:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-replace-add-some-text-for-a-matching-patter-in-Nifi/m-p/374278#M241932</guid>
      <dc:creator>brajeshreddy</dc:creator>
      <dc:date>2023-07-21T10:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace/add some text for a matching patter in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-replace-add-some-text-for-a-matching-patter-in-Nifi/m-p/376417#M242906</link>
      <description>&lt;P&gt;ReplaceText processor should work..&lt;BR /&gt;&lt;BR /&gt;This RegEx search pattern should do the trick:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;^(.*?)\(([^=]*)=([^\)]*)\);$&lt;/LI-CODE&gt;&lt;P&gt;With this replacement value:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;$1($2='$3')&lt;/LI-CODE&gt;&lt;P&gt;Don't forget to set the evaluation mode to line-by-line...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 20:30:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-replace-add-some-text-for-a-matching-patter-in-Nifi/m-p/376417#M242906</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2023-09-16T20:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace/add some text for a matching patter in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-replace-add-some-text-for-a-matching-patter-in-Nifi/m-p/376470#M242927</link>
      <description>&lt;P&gt;Forgot the ";" in the replacement value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;$1($2='$3');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 20:12:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-replace-add-some-text-for-a-matching-patter-in-Nifi/m-p/376470#M242927</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2023-09-18T20:12:14Z</dc:date>
    </item>
  </channel>
</rss>

