<?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: Accessing HBase Table through Hive is very slow in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HBase-Table-through-Hive-is-very-slow/m-p/211715#M81778</link>
    <description>&lt;P&gt;1. COUNT will result in a full  table scan and hence the query is slow. &lt;BR /&gt;2. Where on the primary key will be fast as it will do a lookup and not a scan. &lt;BR /&gt;3. Where used on any column apart from the primary key will result in a HBase full table scan. &lt;BR /&gt;4. Analyse table once to speed up count queries. But it will not affect the where on no-primary key. &lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2018 02:19:48 GMT</pubDate>
    <dc:creator>kgautam</dc:creator>
    <dc:date>2018-08-10T02:19:48Z</dc:date>
    <item>
      <title>Accessing HBase Table through Hive is very slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HBase-Table-through-Hive-is-very-slow/m-p/211714#M81777</link>
      <description>&lt;P&gt;I created a Hive Table, that can access another HBase table. Something like this:&lt;/P&gt;&lt;PRE&gt;create external table hbase_50mio_200regions (rowkey String, valuelist String)
  STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
  WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:valueList")
  TBLPROPERTIES ('hbase.table.name' = 'hbase_50mio_200regions')
&lt;/PRE&gt;&lt;P&gt;The access works and HiveQL queries are fast for small HBase table.&lt;/P&gt;&lt;P&gt;The problems are the queries to huge HBase tables. It takes very long to finish e.g. a simple count (takes &lt;STRONG&gt;&amp;gt;1h&lt;/STRONG&gt; on 50 Mio rows HBase table with about 1300 GB of HFiles)!&lt;/P&gt;&lt;P&gt;Is there a way to pass start and stop key to my Hive SELECT or COUNT queries? &lt;/P&gt;&lt;P&gt;As I saw in the following question &lt;A href="https://stackoverflow.com/a/40729818" target="_blank"&gt;https://stackoverflow.com/a/40729818&lt;/A&gt; the WHERE conditions won't avoid a full table scan, as they only filter the rows after iterating all rows of the HBase table.&lt;/P&gt;&lt;P&gt;Is this right and/or is there another way to avoid full table scans when accessing my HBase table through Hive?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 15:40:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HBase-Table-through-Hive-is-very-slow/m-p/211714#M81777</guid>
      <dc:creator>dmueller1607</dc:creator>
      <dc:date>2018-08-08T15:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing HBase Table through Hive is very slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HBase-Table-through-Hive-is-very-slow/m-p/211715#M81778</link>
      <description>&lt;P&gt;1. COUNT will result in a full  table scan and hence the query is slow. &lt;BR /&gt;2. Where on the primary key will be fast as it will do a lookup and not a scan. &lt;BR /&gt;3. Where used on any column apart from the primary key will result in a HBase full table scan. &lt;BR /&gt;4. Analyse table once to speed up count queries. But it will not affect the where on no-primary key. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 02:19:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HBase-Table-through-Hive-is-very-slow/m-p/211715#M81778</guid>
      <dc:creator>kgautam</dc:creator>
      <dc:date>2018-08-10T02:19:48Z</dc:date>
    </item>
  </channel>
</rss>

