0

我是 Flume 的新手。我想将文件从客户端发送到代理。我的代理代码如下

#define agent

agent.sources = source
agent.sinks = sink
agent.channels = channel

# properties of source
agent.sources.source.type = avro
agent.sources.source.bind = localhost
agent.sources.source.port = 10000

# properties of channel
agent.channels.channel.type = memory
agent.channels.channel.capacity = 5000
agent.channels.channel.transactionCapacity = 500

# properties of sink
agent.sinks.sink.type = hdfs
agent.sinks.sink.hdfs.path = hdfs://Files

#...

这只是代理代码。现在请告诉我执行代理的命令应该是什么以及如何编写/执行客户端,谁可以发送代理,文件。My Problem is how to send file to agent请帮我。

4

0 回答 0