鲁春利的工作笔记,谁说程序员不能有文艺范?
Flume-NG的启动脚本文flume-ng
[hadoop@nnode bin]$ flume-ng Error: Unknown or unspecified command '' Usage: /usr/local/flume1.6.0/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. [hadoop@nnode bin]$
说明:
/usr/local/flume1.6.0/bin/flume-ng <command> [options]...
flume-ng直接参数只能为help、agent、avro-agent、version
help 查看帮助信息 agent 运行Flume agent avro-agent 运行avro Flume agent version 查看版本信息
options包括全局参数(global options)、agent参数(agent options)和avro-agent参数(avro-agent options)。
global参数:
agent参数:
avro-agent参数:
转载于:https://blog.51cto.com/luchunli/1714506