Error: com/eng/mr/WordCountDriver : Unsupported major.minor version 52.0

+1 vote
When I run MapReduce Program on CHD4 and when I submit a Job to Server : I got the above error. Can anyone suggest how can I solve it?
Aug 5, 2019 in Big Data Hadoop by Disha
111 views

2 answers to this question.

+1 vote

Hi,

You are getting the following error because you are using the different libraries while creating the jar and while running the jar.

For example, you are using the JRE-1.6 libraries to create jar and use JRE-1.8 to run the jar without setting the compatibility inside the jar.

You can open the project in the Eclipse and change the libraries to compatible version with your execution environment.

Hope this helps.

answered Aug 5, 2019 by Gitika
• 37,330 points
+2 votes
The reason why you get this error is because of the different version of your JDK. We are using JDK 1.8 in our image and you should most probably be using a higher version of JDK on your local system.
answered Aug 6, 2019 by Venkita
• 240 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Sqoop version compatible with Hadoop 0.20?

Apache Sqoop has 2 major projects i.e. ...READ MORE

answered May 9, 2018 in Big Data Hadoop by Shubham
• 13,450 points
246 views
0 votes
1 answer

Hadoop Mapreduce: Error: Could not find or load main class com.sun.tools.javac.Main

You have to add HADOOP_CLASSPATH environment parameter: expor ...READ MORE

answered Oct 30, 2018 in Big Data Hadoop by Omkar
• 69,030 points
1,175 views
0 votes
1 answer

Hadoop: Error: Could not find or load main class com.sun.tools.javac.Main

It looks like the path is not ...READ MORE

answered Nov 29, 2018 in Big Data Hadoop by Omkar
• 69,030 points
1,702 views
–1 vote
1 answer

Spark multiple version without major version

Yes. It is not necessary to set ...READ MORE

answered Dec 27, 2018 in Big Data Hadoop by Omkar
• 69,030 points
97 views
+2 votes
1 answer

windows 10 C:\Users\mk>hadoop -version output:- Error: Could not find or load main class P.

Hey, I guess the error you are facing ...READ MORE

answered May 10, 2019 in Big Data Hadoop by Gitika
• 37,330 points
835 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
5,862 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
875 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
36,938 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,320 points
2,194 views
+1 vote
2 answers

Hadoop: Error: Exception in thread “main” java.lang.UnsupportedClassVersionError: a

The reason for this error is because ...READ MORE

answered Aug 6, 2019 in Big Data Hadoop by Venkita
• 240 points
398 views