简体   繁体   中英

table are created in hbase shell are not detected in phoenix shell

When I create table by phoenix shell it is detected in hbase shell by command list , but the same is not identified in Phoenix.

Phoenix just detects tables that are created in phoenix shell in addition HBase default table.

How can I fix this problem?

You need to create a view on top of HBase table to perform any query in Phoenix.

To create a view, you need to be in phoenix and issue create view command like below

CREATE VIEW "<table_name>" ( ROWKEY VARCHAR PRIMARY KEY, "<column_family_name>"."<column_name>" <data_type>, "<column_family_name>"."<column_name>" <data_type> ) 

For more details you can check How to use existing HBase table in Apache Phoenix

问题是Phoenix区分大小写,并且仅识别名称为大写的那些表。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM