当前位置: 代码迷 >> 综合 >> Inconsistent namespace mapping properties.
  详细解决方案

Inconsistent namespace mapping properties.

热度:1   发布时间:2023-12-06 09:00:41.0

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即可

  相关解决方案