Description
Currently, tajo provides hbase storage integration and you can create a hbase table as follows:
CREATE TABLE blog (rowkey text, author text, register_date text, title text) USING hbase WITH ( 'table'='blog_backup' , 'columns'=':key,info:author,info:date,content:title' ,'hbase.zookeeper.quorum'='localhost');
But if you don't use the zookeeper property, you will find an error as follows:
CREATE TABLE blog (rowkey text, author text, register_date text, title text) USING hbase WITH ( 'table'='blog_backup' , 'columns'=':key,info:author,info:date,content:title'); java.io.IOException: HBase mapped table is required a 'hbase.zookeeper.quorum' attribute. at org.apache.tajo.storage.hbase.HBaseStorageManager.getHBaseConfiguration(HBaseStorageManager.java:304)
Currently, HBaseStorageManager just refer table meta properties and it will be very useful to use multiple hbase cluster. But if users with small hbase cluster may be uncomfortable to above configuration. Thus we need to support for users to create a hbase table without the tajo zookeeper property.
For example, if users doesn't set the zookeeper property with create statement, tajo should refer hbase-site.xml. And if users set the zookeeper property with the create statement, tajo should use the property.
Attachments
Issue Links
- is related to
-
TAJO-1290 Add HBase Storage Integration Documentation
- Resolved