Phoenix CSV导入数据错误:Inconsistent namespace mapping properites

命令:

hadoop jar phoenix-4.8.0-cdh5.8.0-client.jar org.apache.phoenix.mapreduce.CsvBulkLoadTool --schema PHOENIX660000 \

--table INCRV8_MIO_LOG --input /user/hdfs/mio_log.csv -delimiter '$' --ignore-errors

错误:

Exception in thread "main" java.sql.SQLException: ERROR 726 (43M10):  

Inconsistent namespace mapping properites.. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enabled

原因:

    客户端的 hbase-site.xml 没有配置: phoenix.schema.isNamespaceMappingEnabled 属性

解决办法:

    第一步:修改 /etc/hbase/conf/hbase-site.xml

    第二步:修改 phoenix-4.8.0-cdh5.8.0/bin/hbase-site.xml

扫描二维码关注公众号,回复: 1543777 查看本文章

    在两个hbase-site.xml中添加如下属性

 <property>
    <name>phoenix.schema.isNamespaceMappingEnabled</name>
    <value>true</value>
  </property>

猜你喜欢

转载自blog.csdn.net/yuanhaiwn/article/details/80064647