<?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: ExtractText from file content and put it as file attributes in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExtractText-from-file-content-and-put-it-as-file-attributes/m-p/200663#M59526</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14290/yahya-najjar.html" nodeid="14290" target="_blank"&gt;@Yahya Najjar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use ExtractText processor to extract these field as attributes.&lt;/P&gt;&lt;P&gt;Below a test I did. This configuration will extract your CSV fields as myfields.1, myfields.2, etc&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14666-screen-shot-2017-04-16-at-94538-pm.png" style="width: 1600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17516i513E8AE8CD10D213/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14666-screen-shot-2017-04-16-at-94538-pm.png" alt="14666-screen-shot-2017-04-16-at-94538-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see in the provenance, these informations are added to the flow files as attributes&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14667-screen-shot-2017-04-16-at-94521-pm.png" style="width: 1546px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17517i653EDE65FAD9DE31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14667-screen-shot-2017-04-16-at-94521-pm.png" alt="14667-screen-shot-2017-04-16-at-94521-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below the complete flow&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14668-screen-shot-2017-04-16-at-94554-pm.png" style="width: 540px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17518i03CA867B4B6B0AD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14668-screen-shot-2017-04-16-at-94554-pm.png" alt="14668-screen-shot-2017-04-16-at-94554-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 05:40:15 GMT</pubDate>
    <dc:creator>ahadjidj</dc:creator>
    <dc:date>2019-08-18T05:40:15Z</dc:date>
    <item>
      <title>ExtractText from file content and put it as file attributes</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExtractText-from-file-content-and-put-it-as-file-attributes/m-p/200662#M59525</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Am trying to extract fields from flowfile and put it as attributes so I send it to invokeHTTP processor as GET request,&lt;/P&gt;&lt;P&gt;flowfile content &lt;/P&gt;&lt;P&gt;+1234323432,200,Dynamic,Text&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;Attributes needed&lt;/P&gt;&lt;P&gt;field1: +1234323432&lt;/P&gt;&lt;P&gt;field2: 200&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;something like below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14655-screen-shot-2017-04-15-at-120151-pm.png" style="width: 778px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17519iDE53ED6B582C4AA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14655-screen-shot-2017-04-15-at-120151-pm.png" alt="14655-screen-shot-2017-04-15-at-120151-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:40:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExtractText-from-file-content-and-put-it-as-file-attributes/m-p/200662#M59525</guid>
      <dc:creator>yahya_najjar</dc:creator>
      <dc:date>2019-08-18T05:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: ExtractText from file content and put it as file attributes</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExtractText-from-file-content-and-put-it-as-file-attributes/m-p/200663#M59526</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14290/yahya-najjar.html" nodeid="14290" target="_blank"&gt;@Yahya Najjar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use ExtractText processor to extract these field as attributes.&lt;/P&gt;&lt;P&gt;Below a test I did. This configuration will extract your CSV fields as myfields.1, myfields.2, etc&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14666-screen-shot-2017-04-16-at-94538-pm.png" style="width: 1600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17516i513E8AE8CD10D213/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14666-screen-shot-2017-04-16-at-94538-pm.png" alt="14666-screen-shot-2017-04-16-at-94538-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see in the provenance, these informations are added to the flow files as attributes&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14667-screen-shot-2017-04-16-at-94521-pm.png" style="width: 1546px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17517i653EDE65FAD9DE31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14667-screen-shot-2017-04-16-at-94521-pm.png" alt="14667-screen-shot-2017-04-16-at-94521-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below the complete flow&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14668-screen-shot-2017-04-16-at-94554-pm.png" style="width: 540px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17518i03CA867B4B6B0AD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14668-screen-shot-2017-04-16-at-94554-pm.png" alt="14668-screen-shot-2017-04-16-at-94554-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:40:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExtractText-from-file-content-and-put-it-as-file-attributes/m-p/200663#M59526</guid>
      <dc:creator>ahadjidj</dc:creator>
      <dc:date>2019-08-18T05:40:15Z</dc:date>
    </item>
  </channel>
</rss>

