老师好,phoenix用sqlline.py 怎么查询hbase不在default namespace的表,如查询 ns:userInfo

来源:6-2 Phoenix安装

慕乔峰

2018-12-17

老师好,phoenix用sqlline.py 怎么查询hbase不在default namespace的表,如查询 ns:userInfo

写回答

1回答

叁金

2018-12-17

使用非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>

0
1
慕乔峰
非常感谢!
2018-12-17
共1条回复

HBase+Spring Boot实战分布式文件存储(OpenTSDB实战升级)

深入浅出讲解HBase,让你轻松处理海量数据

493 学习 · 167 问题

查看课程