Eclipse remote Invoke HBase encounters a problem

Source: Internet
Author: User
Tags zookeeper

Http://www.aboutyun.com/thread-8401-1-1.html

Http://www.aboutyun.com/thread-5866-1-1.html

In the Win7 system, Eclipse reads HBase to run an error:

Question 1:

Java.io.IOException:Could not locate executable null\bin\winutils.exe in the Hadoop binaries.

If Hadoop_home is empty, it must be fullexename to Null\bin\winutils.exe. Go into your Hadoop-x.x.x/bin directory and you will find that you are not winutils.exe this stuff at all. Go to GitHub to download one. Address: Https://github.com/srccodes/hadoop-common-2.2.0-bin

1st:

1.Download the file

2.Create Hadoop folder in Your System ex "C:"

3.Create Bin folder in Hadoop directory Ex:c:\hadoop\bin

4.paste Winutils.exe in Bin Ex:c:\hadoop\bin\winuitls.exe

5.In User Variables in System Properties-Advance system Settings

Create New Variable name:hadoop_home path:c:\hadoop\

2nd:

You can set Hadoop home directly in Your Java program with the following Command like this:

System.setProperty("hadoop.home.dir","C:\hadoop" );

Question 2:

Org.apache.hadoop.hbase.MasterNotRunningException:The Node/hbase is not in ZooKeeper. It should has been written by the master. Check the value configured in ' Zookeeper.znode.parent '. There could be a mismatch with the one configured in the master

You can set the following:

Conf.set ("Zookeeper.znode.parent", "/hbase-unsecure");

Eclipse remote Invoke HBase encounters a problem

Related Article

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.