<?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: Nested field as Hbase row identifier in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nested-field-as-Hbase-row-identifier/m-p/339975#M233230</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96937"&gt;@sheep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add an &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;EvaluateJsonPath&lt;/FONT&gt;&lt;/STRONG&gt; processor before your &lt;FONT face="courier new,courier"&gt;PutHBaseJson&lt;/FONT&gt; to extract the value that you need and save it as an attribute in the flowfile. For example, you could get the value from &lt;FONT face="courier new,courier"&gt;$.field1.nestedfield&lt;/FONT&gt; and save that as the attribute &lt;FONT face="courier new,courier"&gt;mynestedfieldvalue&lt;/FONT&gt;. You can then refer to that attribute in your&amp;nbsp;&lt;FONT face="courier new,courier"&gt;PutHBaseJson&lt;/FONT&gt; processor as&lt;FONT face="courier new,courier"&gt; ${mynestedfieldvalue}&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check out this other answer to a similar question:&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Hash-key-value-missing-putdynamodb-nifi/m-p/339622/highlight/true#M233139" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Hash-key-value-missing-putdynamodb-nifi/m-p/339622/highlight/true#M233139&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 23:44:38 GMT</pubDate>
    <dc:creator>araujo</dc:creator>
    <dc:date>2022-03-29T23:44:38Z</dc:date>
    <item>
      <title>Nested field as Hbase row identifier</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nested-field-as-Hbase-row-identifier/m-p/339926#M233217</link>
      <description>&lt;P&gt;I have a JSON document that I want to index into Hbase.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "field1" : {
        "nestedfield" : "value1"
    }
    "field2" : "value2"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case I want `nestedfield` to be the one used as a row identifier field, but I can't figure out how to specify this to the `PutHBaseJson` processor. I have tried multiple ways :&lt;/P&gt;
&lt;P&gt;- field1/nestedfiled&lt;/P&gt;
&lt;P&gt;- field1['nestedfiled']&lt;/P&gt;
&lt;P&gt;- field1.nestedfield&lt;/P&gt;
&lt;P&gt;- $.filed1.nestedfiled&lt;/P&gt;
&lt;P&gt;None of them are working, the processor is saying that "the Row ID was null".&lt;/P&gt;
&lt;P&gt;Using `field2` for this purpose is working fwiw.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 20:22:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nested-field-as-Hbase-row-identifier/m-p/339926#M233217</guid>
      <dc:creator>sheep</dc:creator>
      <dc:date>2022-03-29T20:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nested field as Hbase row identifier</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nested-field-as-Hbase-row-identifier/m-p/339975#M233230</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96937"&gt;@sheep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add an &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;EvaluateJsonPath&lt;/FONT&gt;&lt;/STRONG&gt; processor before your &lt;FONT face="courier new,courier"&gt;PutHBaseJson&lt;/FONT&gt; to extract the value that you need and save it as an attribute in the flowfile. For example, you could get the value from &lt;FONT face="courier new,courier"&gt;$.field1.nestedfield&lt;/FONT&gt; and save that as the attribute &lt;FONT face="courier new,courier"&gt;mynestedfieldvalue&lt;/FONT&gt;. You can then refer to that attribute in your&amp;nbsp;&lt;FONT face="courier new,courier"&gt;PutHBaseJson&lt;/FONT&gt; processor as&lt;FONT face="courier new,courier"&gt; ${mynestedfieldvalue}&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check out this other answer to a similar question:&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Hash-key-value-missing-putdynamodb-nifi/m-p/339622/highlight/true#M233139" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Hash-key-value-missing-putdynamodb-nifi/m-p/339622/highlight/true#M233139&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 23:44:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nested-field-as-Hbase-row-identifier/m-p/339975#M233230</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-29T23:44:38Z</dc:date>
    </item>
  </channel>
</rss>

