命令:
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
在两个hbase-site.xml中添加如下属性
<property>
<name>phoenix.schema.isNamespaceMappingEnabled</name>
<value>true</value>
</property>