Phoenix 启动报错:Error: ERROR 726 (43M10): Inconsistent namespace mapping properties. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.


Phoenix 启动报错:
Error: ERROR 726 (43M10): Inconsistent namespace mapping properties. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enabled (state=43M10,code=726)

查看hbase中发现多了一张SYSTEM:CATALOG表,错误信息提示为连接映射错误。

查看hbase配置文件发现下面这几行可以不用(罪魁祸首)

<property>
  <name>phoenix.schema.isNamespaceMappingEnabled</name>
  <value>true</value>
</property>

<property>
  <name>phoenix.schema.mapSystemTablesToNamespace</name>
  <value>true</value>
</property>

删除部分配置信息后,对文件进行分发到其他机器。

删除hbase中SYSTEM:CATALOG表(删除指令如下)


重新启动hbase和phoenix

出现:

Inconsistent namespace mapping properties. Ensure that config phoenix.schema.isNamespaceMappingEnabled is consistent on client and server. (state=43M10,code=726)

原因:没有同步hbase配置文件到phoenix,继续重复上步骤,删除多的表,修改phoenix文件。

再次重启hbase和phoenix

phoenix会新建几张表,如上图,成功。

hbase配置文件这基本都是hbase-site.xml


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM