开启HDFS HA后,NIFI puthiveStreaming无法写入问题,报错
org.apache.nifi.processors.hive.PutHiveStreaming$ShouldRetryException: Hive Streaming connect/write error, flow file will be penalized and routed to retry. org.apache.nifi.util.hive.HiveWriter$ConnectFailure: Failed connecting to EndPoint {metaStoreUri='thrift://10.0.1.22:9083,thrift://packone23:9083', database='origin', table='test1', partitionVals=[] }
解决方法如下:
1. 清空 Hive Configuration Resources
2. 将配置文件 (core-site.xml, hdfs-site.xml, and hive-site.xml) 同步到 /etc/nifi/conf下
3. 重启nifi