一、在同一系统中启动多个实例产生的错误
[root@node2 opt]# /mnt/logstash/bin/logstash -f /mnt/logstash/conf.d/kafka.conf
Sending Logstash logs to /mnt/logstash/logs which is now configured via log4j2.properties
[2019-07-12T09:28:53,027][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-07-12T09:28:53,064][FATAL][logstash.runner ] Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting.
[2019-07-12T09:28:53,081][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
解决办法:杀死进程重新启动
[root@node2 opt]#ps -ef |grep logstash
[root@node2 opt]#kill -9 进程号
重新执行消费:
[root@node2 opt]#/mnt/logstash/bin/logstash -f /mnt/logstash/conf.d/kafka.conf
联系客服