码迷,mamicode.com
首页 > 系统相关 > 详细

eclipse远程调用hbase遇到问题

时间:2017-03-23 21:29:41      阅读:289      评论:0      收藏:0      [点我收藏+]

标签:des   cat   target   settings   ref   figure   setting   zookeeper   clip   

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

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

 

在Win7系统,eclipse读取Hbase运行报错:

问题1:

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

如果HADOOP_HOME为空,必然fullExeName为null\bin\winutils.exe。进入你的hadoop-x.x.x/bin目录下看,你会发现你压根就没有winutils.exe这个东东。去github下载一个。地址:https://github.com/srccodes/hadoop-common-2.2.0-bin

1st way :

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 Way :

You can set hadoop home directly in Your Java Program with the following Command like this :

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

问题2:

org.apache.hadoop.hbase.MasterNotRunningException: The node /hbase is not in ZooKeeper. It should have 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

设置如下即可:

conf.set("zookeeper.znode.parent","/hbase-unsecure");

 

eclipse远程调用hbase遇到问题

标签:des   cat   target   settings   ref   figure   setting   zookeeper   clip   

原文地址:http://www.cnblogs.com/llphhl/p/6607275.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!