Turn: hadoop startup problem (unrecognized option:-JVM cocould not create the Java Virtual Machine .)

Source: Internet
Author: User

The main achievement today is to run hadoop on the local machine,

In fact, this is not complicated. Just do it one step at a time according to the instructions in the tutorials on the official website.

Previously, I thought hadoop was a very complicated thing, so I searched and read a lot of information on the Internet. It was quite simple to use it, but "the details are the Devil ", it's really hard to figure out the details! It's only useful.

Official Website: http://www.hadoop.com

Start from here: http://hadoop.apache.org/common/docs/r0.20.203.0/

There is a small difficulty in the process. When hadoop is started, the following errors may occur sometimes depending on the JDK version of the local machine:

 

Unrecognized option:-JVM cocould not create the Java Virtual Machine.

 

The original cause is like the description. The JVM does not have the-JVM parameter. Because the JVM parameter is not a standard, JDK of different versions may be different. The solution is, change the JVM of more than 220th rows in the hadoop STARTUP script (\ bin \ hadoop) to-client. If not, simply delete the row's judgment, then you can start it successfully.

 

Solution:

The solution "-JVM server" is changed to "-server", which is caused by root.

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.