启动flume报错:ERROR node.Application: A fatal error occurred while running. Exception follows

1、配置好flume到kafka进行数据消费

当我在kafka创建好消费主题,然后到flume启动时报如下错误:

  • 启动命令:(在flume的bin目录下)
./flume-ng agent -n a1 -c ../config -f ../config/config/flume-exec-kafka.conf
  • 报错信息:
ERROR node.Application: A fatal error occurred while running. Exception follows.
org.apache.commons.cli.ParseException: The specified configuration file does not exist: /home/software/flume-1.9.0/config/config/flume-exec-kafka.conf
        at org.apache.flume.node.Application.main(Application.java:342)

在这里插入图片描述

2、解决问题:

  • 换一个启动命令:
 bin/flume-ng agent --conf config/ --name a1 --conf-file config/flume-exec-kafka.conf
  • 此时已经正常启动

启动flume报错:ERROR node.Application: A fatal error occurred while running. Exception follows_第1张图片

完成

你可能感兴趣的:(Flume,kafka,大数据,flume,kafka)