老师好,phoenix用sqlline.py 怎么查询hbase不在default namespace的表,如查询 ns:userInfo
来源:6-2 Phoenix安装

慕乔峰
2018-12-17
老师好,phoenix用sqlline.py 怎么查询hbase不在default namespace的表,如查询 ns:userInfo
写回答
1回答
-
使用非default的namespace 需要开启Phoenix schema的功能。
在hbase-site.xml中添加如下属性,重启后 再创建映射表即可。
<property>
<name>phoenix.schema.isNamespaceMappingEnabled</name>
<value>true</value>
</property>
<property>
<name>phoenix.schema.mapSystemTablesToNamespace</name>
<value>true</value>
</property>012018-12-17
相似问题