0
私は、HDFSを流してFlume HTTP Sourceをテストしています。以下は、使用されるconfファイルです。HTTPにヘッダを追加投稿コンテンツ
httpagent.sources = httpsource
httpagent.sinks = hdfs-file-sink
httpagent.channels = ch3
httpagent.sources.httpsource.type = http
httpagent.sources.httpsource.bind = address
httpagent.sources.httpsource.handler =org.apache.flume.sink.solr.morphline.BlobHandler httpagent.sources.httpsource.channels = ch3
httpagent.sources.httpsource.port = port
httpagent.sinks.hdfs-file-sink.type = hdfs
httpagent.sinks.hdfs-file-sink.hdfs.path = hdfs://localhost:8020/flume/events
httpagent.sinks.hdfs-file-sink.hdfs.fileType=DataStream
httpagent.sinks.hdfs-file-sink.hdfs.filePrefix = events-
httpagent.sinks.hdfs-file-sink.hdfs.rollInterval = 30
httpagent.sinks.hdfs-file-sink.channel = ch3
httpagent.channels.ch3.type = memory
リクエストボディがHDFSに保存されています。しかし、私はポストのコンテンツにもHTTPヘッダーを追加したいと思っています。それ、どうやったら出来るの?あなたがイベントシリアライザを見てみたいことがあり