eclipse远程调用hbase遇到问题

Posted 跳出

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse远程调用hbase遇到问题相关的知识,希望对你有一定的参考价值。

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遇到问题的主要内容,如果未能解决你的问题,请参考以下文章

本地eclipse远程操作 hbase

远程调用HBase出错,尝试10次后,报org.apache.hadoop.hbase.MasterNotRunningException错误

eclipse+hbase开发环境部署

ViewPager 未从代码、android、eclipse 更新

Hadoop-1,web页面调用报无hbase.jar包以解决 2,报java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.

在远程集群上使用 Hbase 运行 Map Reduce