phoenix报错:Inconsistent namespace mapping properties.
com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(593)|MyHikariCP - Exception during pool initialization.
java.sql.SQLException: ERROR 726 (43M10): Inconsistent namespace mapping properties. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enabled
解决方式如下:
①将phoenix和hbase的hbase-site.xml文件里的开启命名空间一项去掉。
<!--<property><name>phoenix.schema.isNamespaceMappingEnabled</name><value>true</value><description>命名空间开启</description></property><property><name>phoenix.schema.mapSystemTablesToNamespace</name><value>true</value></property>-->
②重启hbase
③进入hbase shell,将SYSTEM:CATALOG改为SYSTEM.CATALOG,操作如下
disable 'SYSTEM:CATALOG'
snapshot 'SYSTEM:CATALOG','cata_tableSnapshot'
clone_snapshot 'cata_tableSnapshot','SYSTEM.CATALOG'
drop 'SYSTEM:CATALOG'
④再次重启hbase即可