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