1、准备
添加配置HBase
hbase-site.xml
vim $HBASE_HOME/conf/hbase-site.xml
<property>
<name>phoenix.schema.isNamespaceMappingEnabled</name>
<value>true</value>
</property>
<property>
<name>phoenix.schema.mapSystemTablesToNamespace</name>
<value>true</value>
</property>
2、重启HBase
3、Phoenix连接报Inconsistent namespace mapping properties. Ensure that config phoenix.schema.isNam
这是因为Phoenix的hbase-site.xml没配置!!!
vim $PHOENIX_HOME/bin/hbase-site.xml
<property>
<name>phoenix.schema.isNamespaceMappingEnabled</name>
<value>true</value>
</property>
<property>
<name>phoenix.schema.mapSystemTablesToNamespace</name>
<value>true</value>
</property>
表映射
CREATE SCHEMA IF NOT EXISTS "bigdata";
create table "bigdata"."student"(
id varchar primary key,
"info"."name" varchar ,
"msg"."age" varchar
) column_encoded_bytes=0;
发现已经映射过来了
第三方DataGrip客户端操作配置参考
https://blog.csdn.net/weixin_43205308/article/details/130593325?spm=1001.2014.3001.5502