<?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 Attributes to flow file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Attributes-to-flow-file/m-p/278602#M208132</link>
    <description>&lt;P&gt;I have a complex flow where I created 3 attributes, [name, date, json_content] extracted from other flow file data that need to go into a database. How can I take these 3 attributes convert them to a new flow file with those columns? The schema I will use has those names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Schema:&lt;BR /&gt;{&lt;BR /&gt;"type": "record",&lt;BR /&gt;"name": "mytable",&lt;BR /&gt;"fields": [&lt;BR /&gt;{"name": "name","type": [ "string" ]},&lt;BR /&gt;{"name": "date","type": "type" : [ "null", { "type" : "long", "logicalType" : "timestamp-millis" } ], "default" : null }&lt;BR /&gt;},&lt;BR /&gt;{"name": "json_content","type": [ "string" ]&lt;/P&gt;
&lt;P&gt;}]&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 13:20:57 GMT</pubDate>
    <dc:creator>mak88</dc:creator>
    <dc:date>2019-10-01T13:20:57Z</dc:date>
    <item>
      <title>Attributes to flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attributes-to-flow-file/m-p/278602#M208132</link>
      <description>&lt;P&gt;I have a complex flow where I created 3 attributes, [name, date, json_content] extracted from other flow file data that need to go into a database. How can I take these 3 attributes convert them to a new flow file with those columns? The schema I will use has those names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Schema:&lt;BR /&gt;{&lt;BR /&gt;"type": "record",&lt;BR /&gt;"name": "mytable",&lt;BR /&gt;"fields": [&lt;BR /&gt;{"name": "name","type": [ "string" ]},&lt;BR /&gt;{"name": "date","type": "type" : [ "null", { "type" : "long", "logicalType" : "timestamp-millis" } ], "default" : null }&lt;BR /&gt;},&lt;BR /&gt;{"name": "json_content","type": [ "string" ]&lt;/P&gt;
&lt;P&gt;}]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 13:20:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attributes-to-flow-file/m-p/278602#M208132</guid>
      <dc:creator>mak88</dc:creator>
      <dc:date>2019-10-01T13:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes to flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attributes-to-flow-file/m-p/278615#M208137</link>
      <description>&lt;P&gt;Tried to delete this as noone seems to answer here.&lt;/P&gt;&lt;P&gt;But if someone has a similiar issue, just UpdateAttribute on attributes you want to create a new flowfile and then pass them to AttributesToJSON processor.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 16:45:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attributes-to-flow-file/m-p/278615#M208137</guid>
      <dc:creator>mak88</dc:creator>
      <dc:date>2019-10-01T16:45:57Z</dc:date>
    </item>
  </channel>
</rss>

