Flume:从客户端向代理发送文件

时间:2013-10-02 07:27:43

标签: hadoop cloud cloudera flume hortonworks-data-platform

我是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请帮助我。

0 个答案:

没有答案