"Hadoop" 12, when running Hadoop error

Source: Internet
Author: User
Tags unsupported

Exception in thread "main" java.lang.unsupportedclassversionerror:com/cutter_point/mr/jobrun:unsupported Major.minor version 52.0

at java.lang.ClassLoader.defineClass1(Native Method)at java.lang.ClassLoader.defineClass(ClassLoader.java:800)at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)at java.net.URLClassLoader.access$100(URLClassLoader.java:71)at java.net.URLClassLoader$1.run(URLClassLoader.java:361)at java.net.URLClassLoader$1.run(URLClassLoader.java:355)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(URLClassLoader.java:354)at java.lang.ClassLoader.loadClass(ClassLoader.java:425)at java.lang.ClassLoader.loadClass(ClassLoader.java:358)at java.lang.Class.forName0(Native Method)at java.lang.Class.forName(Class.java:274)at org.apache.hadoop.util.RunJar.main(RunJar.java:153)

The cause of this error is the version issue

java.lang.unsupportedclassversionerror:pr/sort:unsupported Major.minor version 52.0 This error is due to the high-level Java Project uses a lower version to run.

I showed up in this situation when I replaced the JVM8 in Java build path–>libraries in the properties JVM7

And then the operation was an error.

Workaround:
The Compiler compliance level in Properties–>java compiler-is changed from 1.8 to 1.7, and then it can be run .

Http://blog.sina.com.cn/s/blog_64ecfc2f0102uxu6.html

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"Hadoop" 12, when running Hadoop error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.