检查您是否被命名为您的水槽文件 .conf 延期。
.conf
并尝试使用以下命令:
$ flume-ng agent \ --conf-file PathOfYourFlumeFile\ --name agentameInFlumeFile\ --conf $FLUME_HOME/conf \
更改 $agent_name 使用您在flume文件中使用的代理名称。
$agent_name
你必须提到水槽文件的路径 .conf 扩展而不是这个 /home/gautham/Downloads/apache-flume-1.5.0.1-bin/conf/flume-conf.properties.template
/home/gautham/Downloads/apache-flume-1.5.0.1-bin/conf/flume-conf.properties.template
而不是$ agent_name使用conf文件中代理的实际名称。
我怀疑你没有$ agent_name环境变量,所以它被替换为空字符串。
我有类似的问题。后来发现通过再次用连字符替换所有连字符( - ),它开始工作。可能当我复制此命令时,连字符被替换为减号( - )。