<?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: hive on hbase - not showing data in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240738#M85579</link>
    <description>&lt;P&gt;In my hbase table actually data for 10 columns lands from flume. &lt;/P&gt;&lt;P&gt;In the flume configuration I have defined : host1.sinks.sink1.serializer.columns = col1, col2 ...&lt;/P&gt;&lt;P&gt;In HBASE the table is only defined as above : create 'mbev:hb_test' , 'me_data'&lt;/P&gt;&lt;P&gt;So how do I define the hive table for the respective data for the 10 columns?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Dec 2018 00:51:46 GMT</pubDate>
    <dc:creator>vtpcnk</dc:creator>
    <dc:date>2018-12-19T00:51:46Z</dc:date>
    <item>
      <title>hive on hbase - not showing data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240735#M85576</link>
      <description>&lt;P&gt;I created a table in hbase. Created a table in hive mapping it to the table in hbase. &lt;/P&gt;&lt;P&gt;Inserted a row in the hbase table.&lt;/P&gt;&lt;P&gt;But hive table doesn't show any rows.&lt;/P&gt;&lt;P&gt;Any idea what I am doing wrong?&lt;/P&gt;&lt;P&gt;Appreciate the feedback.&lt;/P&gt;&lt;P&gt;hbase(main):019:0&amp;gt; create 'mbev:hb_test' , 'me_data' &lt;/P&gt;&lt;P&gt;0 row(s) in 1.2670 seconds &lt;/P&gt;&lt;P&gt;hbase(main):006:0&amp;gt; put "mbev:hb_test",'1',"me_data:id",'1' &lt;/P&gt;&lt;P&gt;0 row(s) in 0.1700 seconds &lt;/P&gt;&lt;P&gt;hbase(main):007:0&amp;gt; scan "mbev:hb_test" &lt;/P&gt;&lt;P&gt;ROW                   COLUMN+CELL
 1                    column=me_data:id, timestamp=1545064141017, value=1
1 row(s) in 0.0590 seconds &lt;/P&gt;&lt;P&gt;hive&amp;gt;create external table hv_test (id string, idate string) &lt;/P&gt;&lt;P&gt;
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' &lt;/P&gt;&lt;P&gt;
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,me_data:idate") &lt;/P&gt;&lt;P&gt;TBLPROPERTIES("hbase.table.name" = "mbev:hb_test"); &lt;/P&gt;&lt;P&gt;hive&amp;gt; select * from hv_test ; &lt;/P&gt;&lt;P&gt;OK
Time taken: 0.23 seconds&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 02:07:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240735#M85576</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-12-18T02:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: hive on hbase - not showing data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240736#M85577</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/1485/vtpcnk.html" nodeid="1485"&gt;@n c&lt;/A&gt;,The column name in hbase table &lt;STRONG&gt;id&lt;/STRONG&gt; while mapping the hbase column in hive table you have used as &lt;STRONG&gt;idate&lt;/STRONG&gt;, please correct the column name you will able to see the data.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 04:55:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240736#M85577</guid>
      <dc:creator>npallapotu</dc:creator>
      <dc:date>2018-12-18T04:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: hive on hbase - not showing data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240737#M85578</link>
      <description>&lt;P&gt;Naveen, thanks so much.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 09:18:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240737#M85578</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-12-18T09:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: hive on hbase - not showing data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240738#M85579</link>
      <description>&lt;P&gt;In my hbase table actually data for 10 columns lands from flume. &lt;/P&gt;&lt;P&gt;In the flume configuration I have defined : host1.sinks.sink1.serializer.columns = col1, col2 ...&lt;/P&gt;&lt;P&gt;In HBASE the table is only defined as above : create 'mbev:hb_test' , 'me_data'&lt;/P&gt;&lt;P&gt;So how do I define the hive table for the respective data for the 10 columns?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 00:51:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240738#M85579</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-12-19T00:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: hive on hbase - not showing data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240739#M85580</link>
      <description>&lt;P&gt;btw :&lt;/P&gt;&lt;P&gt;the create table shows two columns : create external table hv_test (id string, idate string)&lt;/P&gt;&lt;P&gt;so how can this statement show only 1 column : WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,me_data:id")&lt;/P&gt;&lt;P&gt;don't we need to likewise map idate?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 04:49:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240739#M85580</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-12-19T04:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: hive on hbase - not showing data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240740#M85581</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/1485/vtpcnk.html" nodeid="1485"&gt;@n c&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;As you know the column names from flume, map the same in the below line while creating the hive table if column names in hbase col1,col2 etc&lt;/P&gt;&lt;P&gt; WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,me_data:col1,me_data:col2...")  &lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 18:08:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240740#M85581</guid>
      <dc:creator>npallapotu</dc:creator>
      <dc:date>2018-12-19T18:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: hive on hbase - not showing data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240741#M85582</link>
      <description>&lt;P&gt;In hbase you have a rowkey &amp;amp; one column so you mapped rowkey as key &amp;amp; id as id. In your case the value is same for both rowkey &amp;amp; id so you are confused assuming there is only 1 column. Try inserting one more row in hbase with different values &amp;amp; see the difference.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 18:11:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240741#M85582</guid>
      <dc:creator>npallapotu</dc:creator>
      <dc:date>2018-12-19T18:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: hive on hbase - not showing data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240742#M85583</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47239/npallapotu.html" nodeid="47239"&gt;@Naveen&lt;/A&gt; &lt;/P&gt;&lt;P&gt;my hbase table is created only with a single column family. &lt;/P&gt;&lt;P&gt;create 'mbev:hb_test' , 'me_data'&lt;/P&gt;&lt;P&gt;Then data is fed into the hbase table through flume. This data originally was sent to a hive table with 10 columns - but for small files issue, i am redirecting the same data to the above hbase table.&lt;/P&gt;&lt;P&gt;my flume config has the following lines :&lt;/P&gt;&lt;P&gt;r_hbase.sinks.sink1.table = mbev:hb_test &lt;/P&gt;&lt;P&gt;r_hbase.sinks.sink1.columnFamily = me_data&lt;/P&gt;&lt;P&gt;r_hbase.sinks.sink1.serializer.columns =col1,col2,col3,col4,col5,col6,col7,col8,col9,col10&lt;/P&gt;&lt;P&gt;So I can see data coming into the hbase table.&lt;/P&gt;&lt;P&gt;Data is showing like :&lt;/P&gt;&lt;P&gt;hbase(main):008:0&amp;gt; scan "mbev:hb_test" &lt;/P&gt;&lt;P&gt;ROW                   COLUMN+CELL &lt;/P&gt;&lt;P&gt; default0998c6b9-2fa9 column=me_data:pCol, timestamp=1545242255268, value=.z3knt
 -122e-1536-0o42ef7fb dErc90GqYg5a3n-zTQ\a04NQA32018-12-19-12.57.30.000123\x09FY
 a3e                  YY\q1V10006002079317\x01M\x00\x09KEF\x00\x00&lt;/P&gt;&lt;P&gt;So how do I create the hive table to see the data in the hbase table.&lt;/P&gt;&lt;P&gt;I tried as we did above initially with only "":key,me_data:id", but don't see the data in the hive table.&lt;/P&gt;&lt;P&gt;I also tried :&lt;/P&gt;&lt;P&gt;create external table tmp_test4 (col1 string,col2 string,col3 string,col4 string,col5 string,col6 string,col7 string,col8 string,col9 string,col10 string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' &lt;/P&gt;&lt;P&gt;WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,me_data:col1,me_data:col2,me_data:col3,me_data:col4,me_data:col5,me_data:col6,me_data:col7,me_data:col8,me_data:col9,me_data:col10")
TBLPROPERTIES("hbase.table.name" = "mbev:hb_test"); &lt;/P&gt;&lt;P&gt;FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: 
MetaException(message:org.apache.hadoop.hive.serde2.SerDeException org.apache.hadoop.hive.hbase.HBaseSerDe: columns has 10 elements while hbase.columns.
mapping has 11 elements (counting the key if implicit))&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 02:28:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240742#M85583</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-12-20T02:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: hive on hbase - not showing data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240743#M85584</link>
      <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/47239/npallapotu.html" nodeid="47239"&gt;@Naveen&lt;/A&gt; any response on this please? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 20:54:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-on-hbase-not-showing-data/m-p/240743#M85584</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-12-20T20:54:22Z</dc:date>
    </item>
  </channel>
</rss>

