1. 程式人生 > 其它 >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.

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

作者:Ya 出處:https://www.cnblogs.com/1463490Ya/ 本文版權歸作者和部落格園共有,歡迎轉載,但未經作者同意必須在文章頁面給出原文連線,否則保留追究法律責任的權利。