<?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: ReplaceTextWithMapping processor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ReplaceTextWithMapping-processor/m-p/141024#M48164</link>
    <description>&lt;P&gt;I have the following insert statements:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;1insert into temp1 values (test1, test2)&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;2insert into temp2 values (test3)&lt;/P&gt;&lt;P&gt;Expected results:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;insert into temp1 values (100, 200)&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;insert into temp2 values (300)&lt;/P&gt;&lt;P&gt;Essentially, I wanted to replace the first query literals &lt;U&gt;test1&lt;/U&gt;, &lt;U&gt;test2&lt;/U&gt; with value 100, 200 respectively and for the second query replace test3 with value 300. Can someone help with the mapping file for the above use case?&lt;/P&gt;&lt;P&gt;I tried with the following, but it doesn't have any effect.&lt;/P&gt;&lt;P&gt;Search Value (RegEx)                            Replacement values&lt;/P&gt;&lt;P&gt;&lt;U&gt;(1)(.*values.*)(.*test1)(.*,)(.*test2)&lt;/U&gt;    &lt;U&gt;$2 val1 $4 val2&lt;/U&gt; &lt;/P&gt;&lt;P&gt;&lt;U&gt;
(2)(.*values.*)(.*test1)&lt;/U&gt;    &lt;U&gt;$2 val3&lt;/U&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2016 16:06:33 GMT</pubDate>
    <dc:creator>ashsskum</dc:creator>
    <dc:date>2016-12-07T16:06:33Z</dc:date>
    <item>
      <title>NiFi: ReplaceTextWithMapping processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ReplaceTextWithMapping-processor/m-p/141024#M48164</link>
      <description>&lt;P&gt;I have the following insert statements:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;1insert into temp1 values (test1, test2)&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;2insert into temp2 values (test3)&lt;/P&gt;&lt;P&gt;Expected results:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;insert into temp1 values (100, 200)&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;insert into temp2 values (300)&lt;/P&gt;&lt;P&gt;Essentially, I wanted to replace the first query literals &lt;U&gt;test1&lt;/U&gt;, &lt;U&gt;test2&lt;/U&gt; with value 100, 200 respectively and for the second query replace test3 with value 300. Can someone help with the mapping file for the above use case?&lt;/P&gt;&lt;P&gt;I tried with the following, but it doesn't have any effect.&lt;/P&gt;&lt;P&gt;Search Value (RegEx)                            Replacement values&lt;/P&gt;&lt;P&gt;&lt;U&gt;(1)(.*values.*)(.*test1)(.*,)(.*test2)&lt;/U&gt;    &lt;U&gt;$2 val1 $4 val2&lt;/U&gt; &lt;/P&gt;&lt;P&gt;&lt;U&gt;
(2)(.*values.*)(.*test1)&lt;/U&gt;    &lt;U&gt;$2 val3&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 16:06:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ReplaceTextWithMapping-processor/m-p/141024#M48164</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-07T16:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: ReplaceTextWithMapping processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ReplaceTextWithMapping-processor/m-p/141025#M48165</link>
      <description>&lt;P&gt;I realized PutHiveQL supports parameterized Hive query and I went for that.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 14:46:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-ReplaceTextWithMapping-processor/m-p/141025#M48165</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-08T14:46:48Z</dc:date>
    </item>
  </channel>
</rss>

