Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

major.minor version 52.0 error

major.minor version 52.0 error

New Contributor

i am using aws ec2 and the version of java is showing 1.8 .Now as root user  when i am trying to ingest data using sqoop 1 from aws rds to hadoop using the following command:

 

sqoop import --connect jdbc:mysql://upgradawsrds.cpclxrkdvwmz.us-east-1.rds.amazonaws.com/cred_financials_data --username upgraduser --password upgraduser --table member_score --delete-target-dir --target-dir 'capstone/member_score'

 

I am getting error:

 

19/06/05 19:00:06 INFO mapreduce.Job: map 0% reduce 0%
19/06/05 19:00:13 INFO mapreduce.Job: Task Id : attempt_1559760115285_0002_m_000000_0, Status : FAILED
Error: member_score : Unsupported major.minor version 52.0
19/06/05 19:00:14 INFO mapreduce.Job: Task Id : attempt_1559760115285_0002_m_000001_0, Status : FAILED
Error: member_score : Unsupported major.minor version 52.0
19/06/05 19:00:14 INFO mapreduce.Job: Task Id : attempt_1559760115285_0002_m_000002_0, Status : FAILED
Error: member_score : Unsupported major.minor version 52.0

 

kindly suggest the solution.

 

 

 

3 REPLIES 3
Highlighted

Re: major.minor version 52.0 error

Master Guru
While the host you are running the command on, and where you checked your java version, is running JDK 8, your cluster's NodeManagers are running with JDK 7, and therefore this will not work.

Sqoop generates and compiles a program to represent DB records for purpose of serialization. This is done with the JDK version at the command-invocation host. The compiled binaries are then shipped to NodeManager hosts for execution, where they expect to run with the same or higher JDK version.

You must either:
- Drop your JDK version on the host where you are running the Sqoop CLI to JDK7, or,
- Update the JDK / Explicitly specify the JDK on all cluster hosts to use JDK8 and restart the cluster.

Re: major.minor version 52.0 error

New Contributor

Thanks Harsh

 

Can you please tell me the steps to update the JDK / Explicitly specify the JDK on all cluster hosts to use JDK8 and restart the cluster. 

Re: major.minor version 52.0 error

Master Guru
@Megs - The steps listed at https://www.cloudera.com/documentation/enterprise/upgrade/topics/ug_jdk8.html should help you achieve this with Cloudera Manager
Don't have an account?
Coming from Hortonworks? Activate your account here