Logstash run time error export JAVA_HOME=/usr/lib/jvm/jre-1.6.0/

Hello, i have a newbie question.
I think i have the correct java version, however, i got the following error from running logstash. any pointer is appreciated!
echo $JAVA_HOME
/export/apps/jdk/JDK-1_8_0_5
After I updated $JAVA_HOME to 1_8_0_72, i have the same problem.
$ java -version
java version "1.8.0_72"
btw, i installed logstash using "yum install"..

$ sudo bin/logstash –f /etc/logstash/conf.d/filebeattofile.conf --config.reload.automatic
NameError: cannot link Java class org.apache.logging.log4j.Level needs Java 7 (java.lang.UnsupportedClassVersionError: org/apache/logging/log4j/Level : Unsupported major.minor version 51.0)
get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
method_missing at file:/usr/share/logstash/vendor/jruby/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14
Logging at /usr/share/logstash/logstash-core/lib/logstash/logging/logger.rb:6
LogStash at /usr/share/logstash/logstash-core/lib/logstash/logging/logger.rb:5
(root) at /usr/share/logstash/logstash-core/lib/logstash/logging/logger.rb:4
require at org/jruby/RubyKernel.java:1040
(root) at /usr/share/logstash/logstash-core/lib/logstash/util/loggable.rb:1
require at org/jruby/RubyKernel.java:1040
(root) at /usr/share/logstash/logstash-core/lib/logstash/util/loggable.rb:2
require at org/jruby/RubyKernel.java:1040
(root) at /usr/share/logstash/logstash-core/lib/logstash/settings.rb:1
require at org/jruby/RubyKernel.java:1040
(root) at /usr/share/logstash/logstash-core/lib/logstash/settings.rb:2
require at org/jruby/RubyKernel.java:1040
(root) at /usr/share/logstash/lib/bootstrap/environment.rb:70

BTW, i resolved this issue by downloading tarball version instead of the rpm version.
thanks for your attention.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.