尝试启动Logstash时如何解决问题“不支持的major.minor版本52.0" [英] How to fix problem 'Unsupported major.minor version 52.0' when trying to start Logstash

查看:87
本文介绍了尝试启动Logstash时如何解决问题“不支持的major.minor版本52.0"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在服务器中启动Logstash服务,但是当我尝试启动时,出现警告信息日志.这个问题解决了吗?

I want to start service Logstash in my server, but when I trying to start, I got warning info log. Is it any problem solved for this issue?

我所有的设置都与Web上的信息相同,从startup.option,jvm.option,logstash.yml和logstash-sample.conf上的配置开始,但是当我尝试启动时,它会出现以下错误:>

All of my setting was same with information as on web, start from configuration on startup.option, jvm.option, logstash.yml and logstash-sample.conf but when I try to start, it thorws below error :

[root @ CDS01〜/logstash] $./bin/logstash -e警告:忽略JAVA_OPTS = -Dsysid = CTAG_WEB_SERVER -DCTAG_CONFIG =/app1/am/cds -server-Xms2048m -Xmx2048m -XX:MaxPermSize = 128m -XX:+ UseParNewGC -XX:ParallelGCThreads = 2 -XX:+ UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction = 50;通过LS_JAVA_OPTS传递JVM参数

[root@CDS01~/logstash]$./bin/logstash -e warning: ignoring JAVA_OPTS=-Dsysid=CTAG_WEB_SERVER -DCTAG_CONFIG=/app1/am/cds -server -Xms2048m -Xmx2048m -XX:MaxPermSize=128m -XX:+UseParNewGC -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=50; pass JVM parameters via LS_JAVA_OPTS

推荐答案

当您的某些库是使用不同的JRE版本(然后是运行的JRE版本)编译的时,会发生此问题.

This issue happens when some of your libraries are compiled using different JRE version, then your running JRE version.

您必须在应用程序中使用某些不兼容的JAR版本.让我知道您使用的是哪个版本的Logstash和哪个JDK,以及要安装和运行您的应用程序所遵循的任何站点?

You must be using some incompatible versions of JAR in your application. let me know which version of Logstash and which JDK you are using and any site which you are following to install and run your application?

有关详细信息,请参阅以下不支持的major.minor 52.0版问题.对此的解释.

Please refer this Unsupported major.minor version 52.0 SO question on detailed explanation about it.

请根据您的版本,在Logstash站点上查看兼容的JDK版本.

Please check the Logstash site for the compatible JDK version based on your version.

看起来您正在使用某些使用JRE 8编译的jar,而正在使用导致问题的JRE 7或更低版​​本,请参考

Looks like you are using some of the jars which are compiled using JRE 8, while you are using the JRE 7 or lower which are causing the issue, Please refer How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version of more information on different class versions of JRE and how to fix this exception.

这篇关于尝试启动Logstash时如何解决问题“不支持的major.minor版本52.0"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆