<?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 NiFi some basics in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-some-basics/m-p/124966#M47319</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using a InvokeHTTP to call a external rest api and then Extract a few values from the JSON response using EvaluateJSONPath&lt;/P&gt;&lt;P&gt;What I am not able to understand is, why are we doing the extract from flowfile-attributes and not flowfile-content&lt;/P&gt;&lt;P&gt;Comparing the terminology with flume (which I have used before), flowfile-attributes are the Event headers and flowfile-content is Event body&lt;/P&gt;&lt;P&gt;Then how is EvaluateJSONPath is extracting from header using EL&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avijeet&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2016 18:00:26 GMT</pubDate>
    <dc:creator>avijeetd</dc:creator>
    <dc:date>2016-11-28T18:00:26Z</dc:date>
    <item>
      <title>NiFi some basics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-some-basics/m-p/124966#M47319</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using a InvokeHTTP to call a external rest api and then Extract a few values from the JSON response using EvaluateJSONPath&lt;/P&gt;&lt;P&gt;What I am not able to understand is, why are we doing the extract from flowfile-attributes and not flowfile-content&lt;/P&gt;&lt;P&gt;Comparing the terminology with flume (which I have used before), flowfile-attributes are the Event headers and flowfile-content is Event body&lt;/P&gt;&lt;P&gt;Then how is EvaluateJSONPath is extracting from header using EL&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avijeet&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 18:00:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-some-basics/m-p/124966#M47319</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2016-11-28T18:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi some basics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-some-basics/m-p/124967#M47320</link>
      <description>&lt;P&gt;Please note that the EvaluateJsonPath &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;extracts from content and &lt;/LI&gt;&lt;LI&gt;places to content or attributes (depending on whether you configure the Destination property as flowfile-content or flowfile-attribute)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thus it extracts from content and places to content or attributes.&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.EvaluateJsonPath/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.EvaluateJsonPath/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you want to extract the headers from the response of InvokeHTTPRequest, you will use EvaluateJsonPath as described above, since the HTTP response header will be part of the json returned and thus part of the FlowFile content.  The following post may be helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/21011/how-i-extract-attribute-from-json-file-using-nifi.html" target="_blank"&gt;https://community.hortonworks.com/questions/21011/how-i-extract-attribute-from-json-file-using-nifi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this answers your question, let me know by accepting the answer; else, let me know of any gaps or follow-up questions.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 20:04:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-some-basics/m-p/124967#M47320</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-12-02T20:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi some basics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-some-basics/m-p/124968#M47321</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/11288/gkeys.html" nodeid="11288"&gt;@Greg Keys&lt;/A&gt; - I was under impression the we are extracting from attributes. Can you pls share any documentation which clearly explain the lifecycle of a Event/flowfile going through a dataflow and any best practices.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 20:45:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-some-basics/m-p/124968#M47321</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2016-12-02T20:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi some basics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-some-basics/m-p/124969#M47322</link>
      <description>&lt;P&gt;This explains flowfiles:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;[basic] &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.1.1/bk_UserGuide/content/terminology.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.1.1/bk_UserGuide/content/terminology.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;[details/flowfile lifecycle] &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/nifi-in-depth.html#DeeperView"&gt;https://nifi.apache.org/docs/nifi-docs/html/nifi-in-depth.html#DeeperView&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDF1/HDF-1.1.1/bk_UserGuide/content/terminology.html"&gt;&lt;/A&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/nifi-in-depth.html#DeeperView"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is a good overview of NiFI: &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/getting-started.html"&gt;https://nifi.apache.org/docs/nifi-docs/html/getting-started.html&lt;/A&gt;. &lt;/P&gt;&lt;P&gt; Each processor follows the same idea of flowfile = content + attributes.  Following the links to each shows more specialized behavior for that processor in operating on flowfiles (which are passed from one processor to the next via connections)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 21:05:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-some-basics/m-p/124969#M47322</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-12-02T21:05:39Z</dc:date>
    </item>
  </channel>
</rss>

