Logging 分离水槽水流

Logging 分离水槽水流,logging,flume,Logging,Flume,我想在flume中创建两个不同的日志流。这些流包含不同的日志消息,最好分别处理它们 拓扑学 我的配置如下所示: +----+ +-----+ | a0 | -> | dst | +----+ +-----+ ^ +----+ | | a1 | ------+ +----+ a0和a1是创建日志的源 dst是应该记录日志条目(到HDFS)的目标 配置 以下是flume shell中的节点配置: [flume localhost:35873:

我想在flume中创建两个不同的日志流。这些流包含不同的日志消息,最好分别处理它们

拓扑学 我的配置如下所示:

+----+    +-----+
| a0 | -> | dst |
+----+    +-----+
             ^
+----+       |
| a1 | ------+
+----+
a0
a1
是创建日志的源

dst
是应该记录日志条目(到HDFS)的目标

配置 以下是flume shell中的节点配置:

[flume localhost:35873:45678] getmappings
Master has the following mappings

Physical Node                  --> Logical Node(s)

a0.domain.local                --> [a0, a0.domain.local]
a1.domain.local                --> [a1, a1.domain.local]
dst.domain.local               --> [dst.domain.local, fooSink, barSink]
问题 当我尝试按原样创建新水槽流时,会出现以下错误:

[flume localhost:35873:45678] exec config a0 fooFlow rpcSource(12345) agentE2ESink("dst")
Failed to run command 'exec config a0 fooFlow rpcSource(12345) agentE2ESink("dst")' due to null
12/03/13 14:06:05 ERROR util.FlumeShell: Failed to run command 'exec config a0 fooFlow rpcSource(12345) agentE2ESink("dst")'

日志中没有任何内容,我无法使用此
执行任何操作,因为出现null
错误。

好的,我知道了,需要引用源和汇:

[flume localhost:35873:45678] exec config a0 fooFlow 'rpcSource(12345)' 'agentE2ESink("dst")'
[id: 35] Execing command : config
Command succeeded