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

posted @ 2021-12-01 16:23  KaneQi  阅读(2489)  评论(0编辑  收藏  举报