写这篇文章是因在使用dbvisualizer连接phoenix时根据网上一些教程一直无法成功。
连接时出现错误:
ERROR 726 (43M10): Inconsistent namespace mapping properites.. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enabled
环境:
phoenix版本为4.7.0.2.6.0.3-8;
dbvisualizer版本:10.0.1
hbase版本:1.1.2.2.6.0.3-8
主要步骤为:
1.添加phoenix-4.7.0.2.6.0.3-8-client.jar到dbvisualizer配置驱动
2.配置链接:
jdbc:phoenix:server:port2181:/hbase-unsecure
说明:server为zookeeper的地址,port为zookeeper的端口,hbase-unsecure为hbase在zookeeper中建立的node名称
3.创建对应连接,且配置连接中的属性properties:phoenix.schema.isNamespaceMappingEnabled true