Logstash加载错误 - Java

时间:2017-10-26 11:20:57

标签: java java-8 logstash jruby

我需要帮助弄清楚如何解决这个错误。我正在运行弹性搜索5.6.2并记录存储5.6.1(并尝试使用5.6.3和6.0.0)和JDK 1.8但我在尝试运行日志存储时遇到错误。这是在OSX 10.12.6

Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of jnr.posix.JavaLibCHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
io/console on JRuby shells out to stty for most operations
LoadError: load error: jopenssl/load --     java.lang.ExceptionInInitializerError: null
  require at org/jruby/RubyKernel.java:1040
   (root) at /Users/perkinsl/logstash-5.6.1/vendor/jruby/lib/ruby/shared/openssl.rb:1
  require at org/jruby/RubyKernel.java:1040
   (root) at /Users/perkinsl/logstash-5.6.1/logstash-core/lib/logstash/patches/stronger_openssl_defaults.rb:1
  require at org/jruby/RubyKernel.java:1040
   (root) at /Users/perkinsl/logstash-5.6.1/logstash-core/lib/logstash/patches/stronger_openssl_defaults.rb:2
  require at org/jruby/RubyKernel.java:1040
   (root) at /Users/perkinsl/logstash-5.6.1/logstash-core/lib/logstash/patches.rb:1
  require at org/jruby/RubyKernel.java:1040
   (root) at /Users/perkinsl/logstash-5.6.1/logstash-core/lib/logstash/patches.rb:5
  require at org/jruby/RubyKernel.java:1040
   (root) at /Users/perkinsl/logstash-5.6.1/lib/bootstrap/environment.rb:70

我已经尝试过运行配置测试,但它没有那么远。

1 个答案:

答案 0 :(得分:1)

完全卸载/重新安装JDK并设置Java_Home似乎已经成功了。