<?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: drop a column  from csv in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/289320#M214171</link>
    <description>&lt;P&gt;what regex should i use in replace text i have csv in given format&lt;/P&gt;&lt;P&gt;Date, IP, Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i want to keep IP only&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2020 09:52:32 GMT</pubDate>
    <dc:creator>nishank_paras</dc:creator>
    <dc:date>2020-02-07T09:52:32Z</dc:date>
    <item>
      <title>drop a column  from csv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288971#M213952</link>
      <description>&lt;P&gt;how can i drop column from csv&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i only want to keep one selected feild&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 14:36:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288971#M213952</guid>
      <dc:creator>nishank_paras</dc:creator>
      <dc:date>2020-02-03T14:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: drop a column  from csv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288980#M213955</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73795"&gt;@nishank_paras&lt;/a&gt;&amp;nbsp;Can you provide some additional details for those who may be able to assist you. Specifically, what components (Spark, NiFi, etc.) are you trying to do this with?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 14:11:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288980#M213955</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2020-02-03T14:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: drop a column  from csv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288987#M213961</link>
      <description>&lt;P&gt;i am new to this&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a csv file with three column name, IP, description&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to keep ip only and drop other&lt;/P&gt;&lt;P&gt;guide me to the best possible way&lt;/P&gt;&lt;P&gt;listfile ---&amp;gt; fetch file ----&amp;gt; ?? -----&amp;gt;putfile&lt;/P&gt;&lt;P&gt;also tell me the configuration settings if any&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Technology - nifi&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 14:31:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288987#M213961</guid>
      <dc:creator>nishank_paras</dc:creator>
      <dc:date>2020-02-03T14:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: drop a column  from csv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288989#M213963</link>
      <description>&lt;P&gt;nifi&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 14:30:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288989#M213963</guid>
      <dc:creator>nishank_paras</dc:creator>
      <dc:date>2020-02-03T14:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: drop a column  from csv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288992#M213965</link>
      <description>&lt;P&gt;Thank you for the additional information. I have updated the labels for your question so those with an interest in Nifi will be more likely to find it. While you are waiting for someone to answer. Allow me to direct you to something you may not have noticed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the right side of this page you should see a list of recommendations.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-02-03 at 9.38.49 AM.png" style="width: 478px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26265i0A2F0A4FD1C606A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-02-03 at 9.38.49 AM.png" alt="Screen Shot 2020-02-03 at 9.38.49 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;At the top for me is one that may be of interest with the subject of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A id="link_c4ff5a25f0cd1c_de11e" class="lia-link-navigation verified-icon" href="https://community.cloudera.com/t5/Support-Questions/How-to-delete-a-row-drop-a-column-in-nifi/m-p/173873#M136136" target="_blank"&gt;&lt;/A&gt;&lt;SPAN class="lia-message-read"&gt;&lt;A id="link_2_c4ff5a25f0cd1c_de11e" class="page-link lia-link-navigation lia-custom-event" href="https://community.cloudera.com/t5/Support-Questions/How-to-delete-a-row-drop-a-column-in-nifi/td-p/173873/jump-to/first-unread-message" target="_blank"&gt;How to delete a row/drop a column in nifi.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-message-read"&gt;There may be other links of assistance listed as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 14:41:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/288992#M213965</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2020-02-03T14:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: drop a column  from csv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/289263#M214145</link>
      <description>&lt;H2&gt;&lt;SPAN class="lia-link-navigation lia-link-disabled"&gt;How to delete a row/drop a column in nifi&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-link-disabled"&gt;this is not helping as the configuration are not clear i'm new to this kindly guide if there is any better way&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this solution is referencing to the nifi documentation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 09:48:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/289263#M214145</guid>
      <dc:creator>nishank_paras</dc:creator>
      <dc:date>2020-02-06T09:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: drop a column  from csv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/289289#M214154</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73795"&gt;@nishank_paras&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without an example input and desired output file, It is difficult to provide an exact solution.&lt;BR /&gt;However, you may want to consider using the ReplaceText processor in NiFi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This processor can be configured with a java regular expression that uses java capture groups to parse your csv file line by line and then use the capture group to replace that lien with only the desired column value.&lt;BR /&gt;&lt;BR /&gt;Just make sure you configure the processor to use "&lt;SPAN&gt;Line-by-Line" instead of the default "Entire text".&lt;BR /&gt;&lt;BR /&gt;Hope this helps you get to a solution that works for you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:28:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/289289#M214154</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2020-02-06T15:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: drop a column  from csv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/289320#M214171</link>
      <description>&lt;P&gt;what regex should i use in replace text i have csv in given format&lt;/P&gt;&lt;P&gt;Date, IP, Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i want to keep IP only&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 09:52:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/289320#M214171</guid>
      <dc:creator>nishank_paras</dc:creator>
      <dc:date>2020-02-07T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: drop a column  from csv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/289362#M214198</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73795"&gt;@nishank_paras&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's assume your input FlowFile content looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date, IP, Description
01-30-2020, 10.0.0.1, server1
01-30-2020, 10.0.1.2, server2
01-30-2020, 10.0.3.4, server3
01-30-2020, 10.0.4.6, server4
01-30-2020, 10.0.10.2, server5&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would configure your ReplaceText processor as follows:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-02-07 at 11.19.05 AM.png" style="width: 735px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26299iC2985B9105E53263/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-02-07 at 11.19.05 AM.png" alt="Screen Shot 2020-02-07 at 11.19.05 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Search Value contains a java regular expression which will match on your entire line and uses one capture group.&amp;nbsp; &amp;nbsp;The Replacement Value says to replace everything matched by the Search Value Regex with only the value from capture group 1.&amp;nbsp; We then configure ReplaceText to evaluate that Regex against each line.&lt;BR /&gt;&lt;BR /&gt;The resulting FlowFile output to the success relationship will have content that looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IP
10.0.0.1
10.0.1.2
10.0.3.4
10.0.4.6
10.0.10.2&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 16:23:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/drop-a-column-from-csv/m-p/289362#M214198</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2020-02-07T16:23:10Z</dc:date>
    </item>
  </channel>
</rss>

