eclipse远程调用hbase遇到问题
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了eclipse远程调用hbase遇到问题,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1251字,纯文字阅读大概需要2分钟。
内容图文
![eclipse远程调用hbase遇到问题](/upload/InfoBanner/zyjiaocheng/1061/4694a6b856fe4a8597861b18485e43dc.jpg)
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");
原文:http://www.cnblogs.com/llphhl/p/6607275.html
内容总结
以上是互联网集市为您收集整理的eclipse远程调用hbase遇到问题全部内容,希望文章能够帮你解决eclipse远程调用hbase遇到问题所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。