table 在 hbase 中创建 shell 在 phoenix 中未检测到 shell
table are created in hbase shell are not detected in phoenix shell
当我通过 phoenix shell 创建 table 时,通过命令 list
在 hbase shell 中检测到它,但在 Phoenix 中未识别到相同的内容。
Phoenix 仅检测 table 在 phoenix shell 以及 HBase 默认值 table 中创建的 table。
我该如何解决这个问题?
您需要在 HBase table 之上 create a view
才能在 Phoenix 中执行任何查询。
要创建视图,您需要在 phoenix 中并发出如下所示的创建视图命令
CREATE VIEW "<table_name>" ( ROWKEY VARCHAR PRIMARY KEY, "<column_family_name>"."<column_name>" <data_type>, "<column_family_name>"."<column_name>" <data_type> )
问题是 Phoenix 区分大小写,只能识别名称为大写的那些表。
当我通过 phoenix shell 创建 table 时,通过命令 list
在 hbase shell 中检测到它,但在 Phoenix 中未识别到相同的内容。
Phoenix 仅检测 table 在 phoenix shell 以及 HBase 默认值 table 中创建的 table。
我该如何解决这个问题?
您需要在 HBase table 之上 create a view
才能在 Phoenix 中执行任何查询。
要创建视图,您需要在 phoenix 中并发出如下所示的创建视图命令
CREATE VIEW "<table_name>" ( ROWKEY VARCHAR PRIMARY KEY, "<column_family_name>"."<column_name>" <data_type>, "<column_family_name>"."<column_name>" <data_type> )
问题是 Phoenix 区分大小写,只能识别名称为大写的那些表。