Hadoop Flume:将文件从客户端发送到代理

Hadoop Flume:将文件从客户端发送到代理,hadoop,cloud,cloudera,flume,hortonworks-data-platform,Hadoop,Cloud,Cloudera,Flume,Hortonworks Data Platform,我不熟悉水槽。我想从客户端向代理发送一个文件。我的代理代码如下 #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 # prop

我不熟悉水槽。我想从客户端向代理发送一个文件。我的代理代码如下

#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

#...

这是唯一的代理代码。现在请告诉我执行代理的命令应该是什么,以及如何编写/执行客户端,谁可以发送代理、文件<代码>我的问题是如何将文件发送给代理请帮助我。

欢迎使用SO。你试过什么?写在我能写的上面。如果你觉得方便的话,请给我一个示例程序。