用法: bin/flume-ng <command> [options]...
commands:
help 显示帮助
agent 运行Flume代理
avro-client 运行一个avro Flume客户端
version 显示Flume版本
global options:
--conf,-c <conf> 使用配置文件
--classpath,-C <cp> 附加classpath路径
--dryrun,-d do not actually start Flume, just print the command
--plugins-path <dirs> 冒号分割的插件文件夹列表. See the
plugins.d section in the user guide for more details.
Default: $FLUME_HOME/plugins.d
-Dproperty=value sets a Java system property value
-Xproperty=value sets a Java -X option
agent options:
--name,-n <name> agent名称
--conf-file,-f <file> 指定配置文件 (required if -z missing)
--zkConnString,-z <str> 指定 ZooKeeper 连接 (required if -f missing)
--zkBasePath,-p <path> 指定 ZooKeeper中的 agent配置文件路径
--no-reload-conf 如果配置更改了不重新加载
--help,-h display help text
avro-client options:
--rpcProps,-P <file> RPC client properties file with server connection params
--host,-H <host> hostname to which events will be sent
--port,-p <port> port of the avro source
--dirname <dir> directory to stream to avro source
--filename,-F <file> text file to stream to avro source (default: std input)
--headerFile,-R <file> File containing event headers as key/value pairs on each new line
--help,-h display help text
Either --rpcProps or both --host and --port must be specified.
Note that if <conf> directory is specified, then it is always included first
in the classpath.
网友评论