gpt4 book ai didi

hadoop - logstash 非法状态异常?

转载 作者:可可西里 更新时间:2023-11-01 15:49:37 25 4
gpt4 key购买 nike

我正在尝试执行此命令:aymenstien@aymenstien-VPCEH2Q1E:/usr/share/logstash$ ./bin/logstash -f/home/aymenstien/Bureau/fb.conf/p>

这是配置文件:

input { file { path => "/home/aymenstien/Bureau/mydoc/*" start_position => beginning codec => json sincedb_path => "/home/aymenstien/Bureau/mydoc/postj1.sincedb" } } output { stdout { codec => rubydebug } elasticsearch { hosts => "localhost:9200"; index => "fbpost" document_type => "post" timeout => 30 workers => 1 } }

我收到这个错误:

aymenstien@aymenstien-VPCEH2Q1E:/usr/share/logstash$ ./bin/logstash -f /home/aymenstien/Bureau/fb.conf WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console [FATAL] 2018-07-05 12:47:56.496 [main] runner - An unexpected error occurred! {:error=>#, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:448:in validate'",
"/usr/share/logstash/logstash-core/lib/logstash/settings.rb:230:in
validate_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:141:in block in validate_all'", "org/jruby/RubyHash.java:1343:ineach'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:140:in validate_all'",
"/usr/share/logstash/logstash-core/lib/logstash/runner.rb:279:in
execute'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in run'",
"/usr/share/logstash/logstash-core/lib/logstash/runner.rb:238:in
run'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in run'", "/usr/share/logstash/lib/bootstrap/environment.rb:73:in
'"]} [ERROR] 2018-07-05 12:47:56.554 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

最佳答案

尝试将 --path.settings/usr/share/logstash/config 与配置文件一起使用。

问题是 logstash 无法找到设置目录(Config 文件夹)路径。

更新命令:./bin/logstash -f/home/aymenstien/Bureau/fb.conf --path.settings/usr/share/logstash/config

关于hadoop - logstash 非法状态异常?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51190051/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com