Uncompressing 6.X.tar.gz (i.e not only the last 6.2.4 version of logstash) I have the following error message:
[ERROR] 2018-05-29 15:45:29.898 [main] Logstash - java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (NameError) cannot link Java class org.apache.http.client.methods.HttpRequestBase, probable missing dependency: org/apache/http/HttpRequest
Is there someone to explain this error ?
For instance, I tryed to put the httpclient-4.0.2 or httpclient-4.5.2 in the logstash-core/lib/jars directory without any result...
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)
Système
Linux MachineName 4.13.0-43-generic #48~16.04.1-Ubuntu SMP Thu May 17 12:56:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Please note the error is more detailed on 6.0.0:
NameError: cannot load Java class org.apache.http.client.methods.HttpRequestBase
for_name at org/jruby/javasupport/JavaClass.java:286
get_proxy_class at org/jruby/javasupport/JavaUtilities.java:34
block in java_import at uri:classloader:/jruby/java/core_ext/object.rb:49
map at org/jruby/RubyArray.java:2486
java_import at uri:classloader:/jruby/java/core_ext/object.rb:36
at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/manticore-0.6.1-java/lib/manticore/java_extensions.rb:1
require at org/jruby/RubyKernel.java:955
(root) at uri:classloader:/jruby/kernel/kernel.rb:1 module:require_relative at uri:classloader:/jruby/kernel/kernel.rb:13
at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/manticore-0.6.1-java/lib/manticore.rb:44
require at org/jruby/RubyKernel.java:955
require at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65
at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/manticore-0.6.1-java/lib/manticore.rb:14
require at org/jruby/RubyKernel.java:955
require at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65
at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/http/manticore.rb:1
require at org/jruby/RubyKernel.java:955
require at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65
at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/http/manticore.rb:1
require at org/jruby/RubyKernel.java:955
require at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65
at /home/tony/Documents/temporaire/logstash-6.0.0/logstash-core/lib/logstash/elasticsearch_client.rb:1
require at org/jruby/RubyKernel.java:955
require at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65
at /home/tony/Documents/temporaire/logstash-6.0.0/logstash-core/lib/logstash/elasticsearch_client.rb:5
require at org/jruby/RubyKernel.java:955
require at /home/tony/Documents/temporaire/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65
at /home/tony/Documents/temporaire/logstash-6.0.0/logstash-core/lib/logstash/config/modules_common.rb:1
require at org/jruby/RubyKernel.java:955
at /home/tony/Documents/temporaire/logstash-6.0.0/logstash-core/lib/logstash/config/modules_common.rb:3
require at org/jruby/RubyKernel.java:955
at /home/tony/Documents/temporaire/logstash-6.0.0/lib/bootstrap/environment.rb:70
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.