<?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: Where are Nifi attributes written? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140297#M102920</link>
    <description>&lt;P&gt;For those who may be at a back level HDF version as we are a good workaround is to use the SplitContent instead as it utilizes many of the attributes Matt has documented above for the SplitJson processor.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2016 22:25:40 GMT</pubDate>
    <dc:creator>murphy_sean</dc:creator>
    <dc:date>2016-12-09T22:25:40Z</dc:date>
    <item>
      <title>Where are Nifi attributes written?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140291#M102914</link>
      <description>&lt;P&gt;Some processor's written attributes are readily available within the FIowFile attributes downstream.  For example 'executesql.row.count' is populated after ExecuteSQL.  I'm not seeing the same behavior with many of the other attributes such as SplitJson.  Are we expected to use Groovy script or some other customer process to extract these values?  A simple example would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 05:10:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140291#M102914</guid>
      <dc:creator>murphy_sean</dc:creator>
      <dc:date>2016-12-07T05:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where are Nifi attributes written?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140292#M102915</link>
      <description>&lt;UL&gt;
&lt;/UL&gt;&lt;P&gt;You access all attributes using the expression language, typically to use attributes and their derivation as values in other attributes of a processor:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.1.1/bk_HDF_GettingStarted/content/ExpressionLanguage.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.1.1/bk_HDF_GettingStarted/content/ExpressionLanguage.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.2/bk_ExpressionLanguageGuide/content/ch_expression_language_guide.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.2/bk_ExpressionLanguageGuide/content/ch_expression_language_guide.html&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;See this for an excellent overview of attributes, how they change with the lifetime of a flow and how they provide programmatic power in your flows: &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.1.1/bk_HDF_GettingStarted/content/working-with-attributes.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.1.1/bk_HDF_GettingStarted/content/working-with-attributes.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this is what you are looking for, let me know by accepting the answer; else, let me know of any gaps or followup questions.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 05:18:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140292#M102915</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-12-07T05:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Where are Nifi attributes written?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140293#M102916</link>
      <description>&lt;P&gt;Each processor is responsible for reading and writing whichever attributes it wants to for the purposes of its processing, and those attributes are available in each processor's documentation. &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SplitJson/index.html"&gt;SplitJson&lt;/A&gt; for example writes the following attributes to each output flow file:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH&gt;Name&lt;/TH&gt;&lt;TH&gt;Description&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;fragment.identifier&lt;/TD&gt;&lt;TD&gt;All split FlowFiles produced from the same parent FlowFile will have the same randomly generated UUID added for this attribute&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;fragment.index&lt;/TD&gt;&lt;TD&gt;A one-up number that indicates the ordering of the split FlowFiles that were created from a single parent FlowFile&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;fragment.count&lt;/TD&gt;&lt;TD&gt;The number of split FlowFiles generated from the parent FlowFile&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;segment.original.filename&lt;/TD&gt;&lt;TD&gt;The filename of the parent FlowFile&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;These were added to NiFi 1.0.0 (HDF 2.0) under &lt;A target="_blank" href="https://issues.apache.org/jira/browse/NIFI-2632"&gt;NIFI-2632&lt;/A&gt;, so if you are using a version of NiFi/HDF before that, that's why you won't see these attributes populated by SplitJson.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 05:31:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140293#M102916</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2016-12-07T05:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where are Nifi attributes written?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140294#M102917</link>
      <description>&lt;P&gt;Thanks for the prompt reply.  I've also tried to address this question in item: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/68745/nifi-iteration-of-queue-entries-between-processors.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://community.hortonworks.com/questions/68745/nifi-iteration-of-queue-entries-between-processors.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get similar behavior as can be seen below for 'executesql.row.count'  by using a user-defined property (property - iteration : value - ${'fragment.index'}  &amp;lt;with and without single quote, set prior to 'SplitJson' or set post 'SplitJson') &lt;/P&gt;&lt;P&gt;I'm only able to get 'No value set' or 'Empty value set' no matter what I try.  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10133-capture.png" style="width: 820px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21770iB83795EB8A688429/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10133-capture.png" alt="10133-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The splitjson is very straight forward and successfully builds many json array objects using the expression below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10134-capture.png" style="width: 803px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21771i5FF1B94E1EE09A97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10134-capture.png" alt="10134-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;All I'm attempting to due is keep track of the queue position, so I can act on the last row to post the last transaction date.  The attribute 'queue position' would also be of interest, but it also contains no data.  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10135-capture.png" style="width: 1823px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21772i55A36CA6B736742B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10135-capture.png" alt="10135-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;                      ~Sean&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:21:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140294#M102917</guid>
      <dc:creator>murphy_sean</dc:creator>
      <dc:date>2019-08-19T08:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Where are Nifi attributes written?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140295#M102918</link>
      <description>&lt;P&gt;Ah,  I see we're at NiFi version 0.5.1.1.1.2.1-34, so that explains why I am not seeing these attributes.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 05:55:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140295#M102918</guid>
      <dc:creator>murphy_sean</dc:creator>
      <dc:date>2016-12-07T05:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where are Nifi attributes written?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140296#M102919</link>
      <description>&lt;P&gt;@Matt Burgess You are correct about my being back level for this support.  Can anyone suggest a workaround, such as another processor attribute that could do something similar?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 06:13:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140296#M102919</guid>
      <dc:creator>murphy_sean</dc:creator>
      <dc:date>2016-12-07T06:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Where are Nifi attributes written?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140297#M102920</link>
      <description>&lt;P&gt;For those who may be at a back level HDF version as we are a good workaround is to use the SplitContent instead as it utilizes many of the attributes Matt has documented above for the SplitJson processor.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 22:25:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-are-Nifi-attributes-written/m-p/140297#M102920</guid>
      <dc:creator>murphy_sean</dc:creator>
      <dc:date>2016-12-09T22:25:40Z</dc:date>
    </item>
  </channel>
</rss>

