I am trying to create Hive external table with HBase table ('test_table) as source. The HBase table is created under HBase namespace 'test_namespace'. In other sections of applications I access the table using following syntx
test_namespace:test_table or hbase://test_namespace:test_table
Following the same approach I created a hive script
CREATE EXTERNAL TABLE IF NOT EXISTS TEST_INDIVIDUAL(
key string,
test string,
photo string,
location string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES("hbase.columns.mapping"="key,default:test,default:photo,default:location")
TBLPROPERTIES("hbase.table.name" = "test_namespace:test_table");
But when I execute the hive script I get the error table not found. If I try
hbase://test_namespace:test_table
it throws invalid table name error.
I tried to google on how to refer HBase namespace inside hive script . But no luck.
Thanks in advance for the help!
test_tableas thehbase.table.name? - Binary Nerd