我正在尝试为文件中的每个事件添加一个UUID,当它使用flume推送到HDFS时。
我使用了以下UUID拦截器:
agentTest.sources.sampleDirSource.interceptors = uuidInterceptor
agentTest.sources.sampleDirSource.interceptors.uuidInterceptor.type = org.apache.flume.sink.solr.morphline.UUIDInterceptor$Builder
agentTest.sources.sampleDirSource.interceptors.uuidInterceptor.headerName = id
agentTest.sources.sampleDirSource.interceptors.uuidInterceptor.preserveExisting = true
agentTest.sources.sampleDirSource.interceptors.uuidInterceptor.prefix = "flume_"
但我在文件中看不到任何结果。 我知道我可以在标题中使用{id}字段,但是从我希望获得的新文件添加到每个日志记录的文档中。
This interceptor sets a universally unique identifier on all events that are intercepted
我错过了什么吗?