简体   繁体   English

Datapipeline中的AWS Athena JDBC Jar使用情况引发Java版本错误

[英]AWS Athena JDBC Jar usage in Datapipeline throwing Java version error

I am trying to run sqlactivity in AWS data pipeline using Athena JDBC connection however i get "UnsupportedClassVersionError" error while running the pipeline. 我正在尝试使用Athena JDBC连接在AWS数据管道中运行sqlactivity,但是在运行管道时出现“ UnsupportedClassVersionError”错误。

i got a bit of information from the blog( http://javarevisited.blogspot.com/2015/05/fixing-unsupported-majorminor-version.html ) but the part that i am not clear for my case is 我从博客中获得了一些信息( http://javarevisited.blogspot.com/2015/05/fixing-unsupported-majorminor-version.html ),但是我不清楚的部分是

Athena Class has Build-Jdk: 1.8.0_60 雅典娜(Athena)类具有Build-Jdk:1.8.0_60

My system has Java version: 1.8.0_71 我的系统具有Java版本:1.8.0_71

so i am not sure why there is a version mismatch.Also i have only JRE installed in my system no JDK. 所以我不确定为什么会有版本不匹配。另外,我的系统中只安装了JRE,没有JDK。 I am completely new to java any help is much appreciated. 我对Java完全陌生,非常感谢。

Athena JDBC file name: AthenaJDBC41-1.0.1.Jar Athena JDBC文件名:AthenaJDBC41-1.0.1.Jar

JDBC Driver class: com.amazonaws.athena.jdbc.AthenaDriver JDBC驱动程序类:com.amazonaws.athena.jdbc.AthenaDriver

DataPipeline Error Message: DataPipeline错误消息:

ErrorID: ActivityFailed:UnsupportedClassVersionError 错误ID:ActivityFailed:UnsupportedClassVersionError

ErrorMessage: com/amazonaws/athena/jdbc/AthenaDriver : Unsupported major.minor version 52.0 错误消息:com / amazonaws / athena / jdbc / AthenaDriver:不支持的major.minor版本52.0

datapipeline is provisioning ec2 instances on your behalf. datapipeline代表您供应ec2实例。 Default AMI it is using comes with java 1.6 or 1.7. 它使用的默认AMI随Java 1.6或1.7一起提供。 You need to build your own AMI with java 1.8 and specify a reference to your custom AMI in datapipeline EC2 Resource Properties 您需要使用Java 1.8构建自己的AMI,并在datapipeline EC2资源属性中指定对自定义AMI的引用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM