使用Flume向HDFS采集数据时报错:
java.lang.NullPointerException: Expected timestamp in the Flume event headers, but it was null
解决方法是在flume的配置文件中添加时间戳配置项:
a1.sinks.k1.hdfs.useLocalTimeStamp = true
使用Flume向HDFS采集数据时报错:
java.lang.NullPointerException: Expected timestamp in the Flume event headers, but it was null
解决方法是在flume的配置文件中添加时间戳配置项:
a1.sinks.k1.hdfs.useLocalTimeStamp = true