<?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: Replace Text using Regex with large file in NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106106#M68984</link>
    <description>&lt;P&gt;Thanks for response. I will try this.I have regex like 's/","/\|/g; s/"//g', How do i use in this replace text processor. &lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 00:35:38 GMT</pubDate>
    <dc:creator>varun_rathinam</dc:creator>
    <dc:date>2017-02-16T00:35:38Z</dc:date>
    <item>
      <title>Replace Text using Regex with large file in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106104#M68982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using HDP 2.5 with Nifi 0.6 version. I have 10GB CSV file, i want replace double quotes with pipe delimiter. Is it possible on NIFI Replace Text processor? or I need to write any external script like Groovy,Luna. Please tell me any reference links, how to implement either scripting or replace text processor for large file. &lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 16:28:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106104#M68982</guid>
      <dc:creator>varun_rathinam</dc:creator>
      <dc:date>2017-02-15T16:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Text using Regex with large file in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106105#M68983</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14885/varunrathinam.html" nodeid="14885" target="_blank"&gt;@Varun  R&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;The ReplaceText processor has two Evaluation Modes (Line-by-Line and Entire text).  Entire Text is the default which reads the entire contents of your FLowFile in to NIFI's JVM heap memory for evaluation.  With such a large file this strategy is not ideal and could lead to out of memory conditions for your NiFi.  If the content of your FlowFile is multiple lines, you could switch to using the Line-by-Line evaluation mode which will result in less heap memory usage but ultimately the same resulting modified content in the outgoing FlowFile.&lt;/P&gt;&lt;P&gt;So you might want to try a ReplaceText processor configuration like the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12488-screen-shot-2017-02-15-at-81839-am.png" style="width: 1580px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23538i67A519FB3E86A9EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12488-screen-shot-2017-02-15-at-81839-am.png" alt="12488-screen-shot-2017-02-15-at-81839-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:54:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106105#M68983</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-19T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Text using Regex with large file in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106106#M68984</link>
      <description>&lt;P&gt;Thanks for response. I will try this.I have regex like 's/","/\|/g; s/"//g', How do i use in this replace text processor. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 00:35:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106106#M68984</guid>
      <dc:creator>varun_rathinam</dc:creator>
      <dc:date>2017-02-16T00:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Text using Regex with large file in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106107#M68985</link>
      <description>&lt;P&gt;It works!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 12:28:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106107#M68985</guid>
      <dc:creator>varun_rathinam</dc:creator>
      <dc:date>2017-02-16T12:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Text using Regex with large file in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106108#M68986</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;Anshu here. &lt;/P&gt;&lt;P&gt;We have a requirement to anonymize IP address. So we would identify IP address and replace the last part with some arbitrary value.&lt;/P&gt;&lt;P&gt;We have tried using the following regex for that (with "Regex Replace" for replacement strategy, "Line-by-Line" as evaluation mode)&lt;/P&gt;&lt;P&gt;(1) \\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3} &lt;/P&gt;&lt;P&gt;(2) ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$&lt;/P&gt;&lt;P&gt;(3) ((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)&lt;/P&gt;&lt;P&gt;None of this works. &lt;/P&gt;&lt;P&gt;Can you help me with the right value of regex we can use and the replacement value as well.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 19:53:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106108#M68986</guid>
      <dc:creator>anshuman_ghosh</dc:creator>
      <dc:date>2017-02-16T19:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Text using Regex with large file in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106109#M68987</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16111/anshumanghosh.html" nodeid="16111"&gt;@Anshuman Ghosh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please open a new question for this issue rather then attaching to a question with an existing answer.  While dealing with the same processor, the problem is different and it benefits the community to have it addressed under its own question.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 22:40:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106109#M68987</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-16T22:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Text using Regex with large file in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106110#M68988</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16111/anshumanghosh.html" nodeid="16111"&gt;@Anshuman Ghosh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Tip: Make sure you tag your question with NiFi, so that the community of NiFi followers are notified about your new question.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 22:48:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106110#M68988</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-16T22:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Text using Regex with large file in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106111#M68989</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks! I will do that. Regret for any inconvenience.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 23:02:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106111#M68989</guid>
      <dc:creator>anshuman_ghosh</dc:creator>
      <dc:date>2017-02-16T23:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Text using Regex with large file in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106112#M68990</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16111/anshumanghosh.html" nodeid="16111"&gt;@Anshuman Ghosh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;No inconvenience at all. We just want to keep it as easy as possible for community members to find similar issues and solutions.  I would have moved it myself if I couldhave.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 23:04:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Text-using-Regex-with-large-file-in-NIFI/m-p/106112#M68990</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-16T23:04:32Z</dc:date>
    </item>
  </channel>
</rss>

