<?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: NiFi PutHiveStreaming - NULL if hierarchical JSON is used in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-PutHiveStreaming-NULL-if-hierarchical-JSON-is-used/m-p/172119#M134412</link>
    <description>&lt;P&gt;...currently we are using JOLT as to not confuse the hbase-processor with parent-child levels&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2017 21:40:51 GMT</pubDate>
    <dc:creator>daniel_scheiner</dc:creator>
    <dc:date>2017-03-23T21:40:51Z</dc:date>
    <item>
      <title>NiFi PutHiveStreaming - NULL if hierarchical JSON is used</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-PutHiveStreaming-NULL-if-hierarchical-JSON-is-used/m-p/172118#M134411</link>
      <description>&lt;P&gt;Using the &lt;STRONG&gt;PutHiveStreaming &lt;/STRONG&gt;processor and a verified correct AVRO schema for our data - NiFi puts only &lt;STRONG&gt;NULL &lt;/STRONG&gt;if &lt;STRONG&gt;hierarchical JSON&lt;/STRONG&gt; is used as input.&lt;/P&gt;&lt;P&gt;Example with our data below "Person"&lt;/P&gt;&lt;PRE&gt;{
"Person":{
	"Name": "A",
	"Age": 23
	}
}
&lt;/PRE&gt;&lt;P&gt;will produce NULL in the Hive table:&lt;/P&gt;&lt;PRE&gt;Name	Age
NULL	NULL&lt;/PRE&gt;&lt;P&gt;While a "flat" JSON file, like:&lt;/P&gt;&lt;PRE&gt;{
	"Name": "A",
	"Age": 23
}&lt;/PRE&gt;&lt;P&gt;will actually put the data into our hive table:&lt;/P&gt;&lt;PRE&gt;Name	Age
A	23&lt;/PRE&gt;&lt;P&gt;Does anyone have a solution so we can use JSON levels/hierarchies?&lt;/P&gt;&lt;P&gt;Thank you sincerely!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 19:57:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-PutHiveStreaming-NULL-if-hierarchical-JSON-is-used/m-p/172118#M134411</guid>
      <dc:creator>daniel_scheiner</dc:creator>
      <dc:date>2017-03-23T19:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi PutHiveStreaming - NULL if hierarchical JSON is used</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-PutHiveStreaming-NULL-if-hierarchical-JSON-is-used/m-p/172119#M134412</link>
      <description>&lt;P&gt;...currently we are using JOLT as to not confuse the hbase-processor with parent-child levels&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 21:40:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-PutHiveStreaming-NULL-if-hierarchical-JSON-is-used/m-p/172119#M134412</guid>
      <dc:creator>daniel_scheiner</dc:creator>
      <dc:date>2017-03-23T21:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi PutHiveStreaming - NULL if hierarchical JSON is used</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-PutHiveStreaming-NULL-if-hierarchical-JSON-is-used/m-p/172120#M134413</link>
      <description>&lt;P&gt;As you suggested, you can use the JoltTransformJSON processor to "flatten" your JSON, but if your use case is as simple as the provided example (where the fields are one level down), you could also use EvaluateJsonPath with the target set to flowfile-content and the JSONPath expression set to $.Person&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 22:46:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-PutHiveStreaming-NULL-if-hierarchical-JSON-is-used/m-p/172120#M134413</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-03-23T22:46:49Z</dc:date>
    </item>
  </channel>
</rss>

