Run phoenix client error of: 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
-
Refer to:
-
Resolved: The new version of hbase2.x, the default namespace and table name separator is
":"
, but Phoenix uses"."
by default, but from Phoenix4.8+, namespace mapping to hbase is supported, but you must manually configure the HBase server and Phoenix clients configure it, that is, add configuration items in hbase-site.xml (need restart) e.g:
<property>
<name>phoenix.connection.isNamespaceMappingEnabled</name>
<value>true</value>
</property>
<property>
<name>phoenix.schema.isNamespaceMappingEnabled=true</name>
<value>true</value>
</property>