问题相关代码,请勿粘贴截图
[xzj@localhost logstash-7.8.0]$ sudo ./bin/logstash-plugin install logstash-codec-json_lines
2022-07-25T18:27:29.291+08:00 [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
LoadError: load error: rubygems/security -- java.lang.reflect.InaccessibleObjectException: Unable to make field private java.security.Provider java.security.MessageDigest.provider accessible: module java.base does not "opens java.security" to unnamed module @1f53481b
require at org/jruby/RubyKernel.java:974
require at /usr/local/logstash/logstash-7.8.0/vendor/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
<main> at /usr/local/logstash/logstash-7.8.0/vendor/jruby/lib/ruby/stdlib/rubygems/package.rb:44
require at org/jruby/RubyKernel.java:974
require at /usr/local/logstash/logstash-7.8.0/vendor/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
<main> at /usr/local/logstash/logstash-7.8.0/lib/pluginmanager/util.rb:18
require at org/jruby/RubyKernel.java:974
require at /usr/local/logstash/logstash-7.8.0/vendor/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
<main> at /usr/local/logstash/logstash-7.8.0/lib/pluginmanager/main.rb:31