<?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: How are mapping files formatted for the NiFi ReplaceTextWithMapping processor? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102718#M65653</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2133/ltsimps1.html" nodeid="2133"&gt;@Kausha Simpson&lt;/A&gt;&lt;P&gt;quick &lt;A href="https://github.com/hortonworks-gallery/nifi-templates/search?utf8=%E2%9C%93&amp;amp;q=ReplaceTextWithMapping&amp;amp;type=Code"&gt;search&lt;/A&gt; on the templates github repo shows 0 results. &lt;A rel="user" href="https://community.cloudera.com/users/39/jpercivall.html" nodeid="39"&gt;@jpercivall&lt;/A&gt; any help?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2016 18:50:56 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-01-15T18:50:56Z</dc:date>
    <item>
      <title>How are mapping files formatted for the NiFi ReplaceTextWithMapping processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102717#M65652</link>
      <description>&lt;P&gt;I am looking for a simple example of how to use the NiFi ReplaceTextWithMapping to parse file contents.  Are templates available including a mapping file? Please share.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 07:14:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102717#M65652</guid>
      <dc:creator>ltsimps1</dc:creator>
      <dc:date>2016-01-15T07:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How are mapping files formatted for the NiFi ReplaceTextWithMapping processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102718#M65653</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2133/ltsimps1.html" nodeid="2133"&gt;@Kausha Simpson&lt;/A&gt;&lt;P&gt;quick &lt;A href="https://github.com/hortonworks-gallery/nifi-templates/search?utf8=%E2%9C%93&amp;amp;q=ReplaceTextWithMapping&amp;amp;type=Code"&gt;search&lt;/A&gt; on the templates github repo shows 0 results. &lt;A rel="user" href="https://community.cloudera.com/users/39/jpercivall.html" nodeid="39"&gt;@jpercivall&lt;/A&gt; any help?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 18:50:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102718#M65653</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-15T18:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How are mapping files formatted for the NiFi ReplaceTextWithMapping processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102719#M65654</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2133/ltsimps1.html" nodeid="2133"&gt;&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2133/ltsimps1.html" nodeid="2133"&gt;@Kausha Simpson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ReplaceTextWithMapping works exactly like ReplaceText with the exception that the ReplaceText property "Replacement Value" is defined in an external file. Unfortunately the format of that file is not very well documented. I have attached an example of that file and a sample workflow but for a high level overview the mapping file format is newline delimited per mapping defined with a \t character separator the mapping key to the desired replacement value. Good luck and hope this information helps.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 21:14:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102719#M65654</guid>
      <dc:creator>jdyer</dc:creator>
      <dc:date>2016-01-15T21:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: How are mapping files formatted for the NiFi ReplaceTextWithMapping processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102720#M65655</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/166/jdyer.html" nodeid="166"&gt;@Jeremy Dyer&lt;/A&gt;, thanks again!&lt;/P&gt;&lt;P&gt;This is a good starting point.  It seems that the mapping requires a 1-to-1 relationship and might not permit more dynamic programming. I'll continue to research this processor as well as options for ExecuteProcess.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 01:30:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102720#M65655</guid>
      <dc:creator>ltsimps1</dc:creator>
      <dc:date>2016-01-16T01:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: How are mapping files formatted for the NiFi ReplaceTextWithMapping processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102721#M65656</link>
      <description>&lt;P&gt;Hey Jeremy, just a heads up I just added your template and mapping file to the HWX NiFi Template repo &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; mentioned (https://github.com/hortonworks-gallery/nifi-templates)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 03:17:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102721#M65656</guid>
      <dc:creator>jpercivall</dc:creator>
      <dc:date>2016-04-01T03:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: How are mapping files formatted for the NiFi ReplaceTextWithMapping processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102722#M65657</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/166/jdyer.html" nodeid="166"&gt;@Jeremy Dyer&lt;/A&gt; I understand how a global replacement works, but am struggling when I just want to replace certain occurrences.&lt;/P&gt;&lt;P&gt;Let's say my Flowfile looks like this:&lt;/P&gt;&lt;PRE&gt;xyz key=AABBBBCC foo bar AABBBBCC&lt;/PRE&gt;&lt;P&gt;Another one looks like this:&lt;/P&gt;&lt;PRE&gt;xyz key=DDEEEEFF foo bar DDEEEEFF&lt;/PRE&gt;&lt;P&gt;I only want to replace the values that are prepended by key=&lt;/P&gt;&lt;P&gt;I tried with Regular Expression key=(\S+) and Matching Group 1 , which didn't work.&lt;/P&gt;&lt;P&gt;What did work was setting the Regex to key=(AABBBBCC|DDEEEEFF), but this unfortunately makes the regex static.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 12:14:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-are-mapping-files-formatted-for-the-NiFi/m-p/102722#M65657</guid>
      <dc:creator>mika_borner</dc:creator>
      <dc:date>2017-03-30T12:14:28Z</dc:date>
    </item>
  </channel>
</rss>

