<?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 Kite Datasets SDK (HBase) - Datasets.load() and DatasetReader.newReader() not returning full dataset in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kite-Datasets-SDK-HBase-Datasets-load-and-DatasetReader/m-p/45266#M41096</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several HBase tables defined using Avro schemas and I am trying to write a simple Java function to return the entire dataset for a given table (all records).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing something like this (assume the "Customer avro" schema has been defined):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DatasetReader&amp;lt;Customer&amp;gt; &lt;SPAN&gt;reader&lt;/SPAN&gt; = &lt;SPAN&gt;null;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;RandomAccessDataset&amp;lt;Customer&amp;gt; customers &lt;/SPAN&gt;= Datasets.&lt;SPAN&gt;load&lt;/SPAN&gt;(PropertyManager.&lt;SPAN&gt;getDatasetURI&lt;/SPAN&gt;(HBaseHelper.&lt;SPAN&gt;CUSTOMER&lt;/SPAN&gt;)&lt;SPAN&gt;, &lt;/SPAN&gt;Customer.&lt;SPAN&gt;class&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;reader = &lt;SPAN&gt;customers&lt;/SPAN&gt;.newReader()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the API docs, this should return the entire unflitered dataset. The URI method also uses the "dataset:" scheme so it is not getting a View.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm seeing is that only a&amp;nbsp;&lt;STRONG&gt;very small subset&lt;/STRONG&gt; of the entire table is actually returned when I get a handle to the iterator - ~20 out of 15000 records that are actually in the table, which is barely 0.1%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise on how to get all records and if this is a defect with Kite - using the native HBase API is not an option because of the&amp;nbsp;Kite encoding which is challenging to work with outside of Kite.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: we do not seem to see this&amp;nbsp;issue on a single-node HBase, only on an HBase cluster with&amp;nbsp;Kerberos auth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:39:59 GMT</pubDate>
    <dc:creator>jastang</dc:creator>
    <dc:date>2022-09-16T10:39:59Z</dc:date>
    <item>
      <title>Kite Datasets SDK (HBase) - Datasets.load() and DatasetReader.newReader() not returning full dataset</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kite-Datasets-SDK-HBase-Datasets-load-and-DatasetReader/m-p/45266#M41096</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several HBase tables defined using Avro schemas and I am trying to write a simple Java function to return the entire dataset for a given table (all records).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing something like this (assume the "Customer avro" schema has been defined):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DatasetReader&amp;lt;Customer&amp;gt; &lt;SPAN&gt;reader&lt;/SPAN&gt; = &lt;SPAN&gt;null;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;RandomAccessDataset&amp;lt;Customer&amp;gt; customers &lt;/SPAN&gt;= Datasets.&lt;SPAN&gt;load&lt;/SPAN&gt;(PropertyManager.&lt;SPAN&gt;getDatasetURI&lt;/SPAN&gt;(HBaseHelper.&lt;SPAN&gt;CUSTOMER&lt;/SPAN&gt;)&lt;SPAN&gt;, &lt;/SPAN&gt;Customer.&lt;SPAN&gt;class&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;reader = &lt;SPAN&gt;customers&lt;/SPAN&gt;.newReader()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the API docs, this should return the entire unflitered dataset. The URI method also uses the "dataset:" scheme so it is not getting a View.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm seeing is that only a&amp;nbsp;&lt;STRONG&gt;very small subset&lt;/STRONG&gt; of the entire table is actually returned when I get a handle to the iterator - ~20 out of 15000 records that are actually in the table, which is barely 0.1%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise on how to get all records and if this is a defect with Kite - using the native HBase API is not an option because of the&amp;nbsp;Kite encoding which is challenging to work with outside of Kite.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: we do not seem to see this&amp;nbsp;issue on a single-node HBase, only on an HBase cluster with&amp;nbsp;Kerberos auth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:39:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kite-Datasets-SDK-HBase-Datasets-load-and-DatasetReader/m-p/45266#M41096</guid>
      <dc:creator>jastang</dc:creator>
      <dc:date>2022-09-16T10:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Kite Datasets SDK (HBase) - Datasets.load() and DatasetReader.newReader() not returning full dat</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kite-Datasets-SDK-HBase-Datasets-load-and-DatasetReader/m-p/48406#M41097</link>
      <description>&lt;P&gt;So ... after a long hiatus. Turns out this is actually&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/HBASE-13262" target="_blank"&gt;https://issues.apache.org/jira/browse/HBASE-13262&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using hbase-client 0.96 with HBase 1.0.0 (CDH 5.5) and we had tables that were housing large XML payloads, which would force the bug to manifest when&amp;nbsp;hbase.client.scanner.caching was a high value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are multiple ways to fix this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use hbase-client 0.98+, if you can afford to upgrade without impact&lt;/LI&gt;&lt;LI&gt;Lower the value of&amp;nbsp;hbase.client.scanner.caching in CM (this was what I ended up doing)&lt;/LI&gt;&lt;LI&gt;Programatically, use Scan.setCaching(int) and/or Scan.setMaxResultSize() to avoid the region skipping.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 04:13:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kite-Datasets-SDK-HBase-Datasets-load-and-DatasetReader/m-p/48406#M41097</guid>
      <dc:creator>jastang</dc:creator>
      <dc:date>2016-12-09T04:13:47Z</dc:date>
    </item>
  </channel>
</rss>

