flume启动参数
root@ubuntu:/home/wutao# flume-ng --help
Error: Unknown or unspecified command '--help'
Usage: /usr/tools/flume/bin/flume-ng <command> [options]...
commands:
help display this help text
agent run a Flume agent
avro-client run an avro Flume client
version show Flume version info
global options:
--conf,-c <conf> use configs in <conf> directory
--classpath,-C <cp> append to the classpath
--dryrun,-d do not actually start Flume, just print the command
--plugins-path <dirs> colon-separated list of plugins.d directories. 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> the name of this agent (required)
--conf-file,-f <file> specify a config file (required if -z missing)
--zkConnString,-z <str> specify the ZooKeeper connection to use (required if -f missing)
--zkBasePath,-p <path> specify the base path in ZooKeeper for agent configs
--no-reload-conf do not reload config file if changed
--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.
root@ubuntu:/home/wutao#
root@ubuntu:/home/wutao# flume-ng --help
Error: Unknown or unspecified command '--help'
Usage: /usr/tools/flume/bin/flume-ng <command> [options]...
commands:
help display this help text
agent run a Flume agent
avro-client run an avro Flume client
version show Flume version info
global options:
--conf,-c <conf> use configs in <conf> directory
--classpath,-C <cp> append to the classpath
--dryrun,-d do not actually start Flume, just print the command
--plugins-path <dirs> colon-separated list of plugins.d directories. 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> the name of this agent (required)
--conf-file,-f <file> specify a config file (required if -z missing)
--zkConnString,-z <str> specify the ZooKeeper connection to use (required if -f missing)
--zkBasePath,-p <path> specify the base path in ZooKeeper for agent configs
--no-reload-conf do not reload config file if changed
--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.
命令
参数 |
描述 |
help |
帮助 |
agent |
运行一个flume agent |
arvo-client |
运行一个Avro Flume 客户端 |
version |
显示Flume版本。 |
全局选项
参数 |
描述 |
--conf,-c <conf> |
在<conf>目录使用配置文件。指定配置文件放在什么目录 |
--classpath,-C <cp> |
追加一个classpath |
--dryrun,-d |
不真正运行Agent,而只是打印命令一些信息。 |
--plugins-path <dirs> |
插件目录列表。默认:$FLUME_HOME/plugins.d |
-Dproperty=value |
设置一个JAVA系统属性值。 |
-Xproperty=value |
设置一个JAVA -X的选项。 |
agent选项
参数 |
描述 |
--name,-n <name> |
agent名称(必填) |
--conf-file,-f <file> |
指定一个配置文件(如果zk信息缺失,必填) |
--zkConnString,-z <str> |
指定一个zookeeper连接信息 |
--zkBasePath,-p <path> |
指定一个基本路径给agent配置 |
--no-reload-conf |
配置文件更新了不重新加载 |
--help,-h |
帮助信息 |
avro-client 选项
参数 |
描述 |
--rpcProps,-P <file> |
rpc客户端连接参数的配置文件 |
--host,-H <host> |
Event所要发送的hostname |
--port,-p <port> |
Avro Source的端口 |
--dirname <dir> |
Avro Source流到达的目录 |
--filename,-F <file> |
Avro Source流到达的文件名 |
--headerFile,-R <file> |
包含事件头的信息(每一行都是key/value键值对的格式)的文件 |
--help,-h |
帮助信息 |
参考链接
https://qianshangding.iteye.com/blog/2259401
网友评论