zoukankan      html  css  js  c++  java
  • 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 nullinwinutils.exe in the Hadoop binaries.

    如果HADOOP_HOME为空,必然fullExeName为nullinwinutils.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:hadoopin

    4.paste winutils.exe in bin ex: C:hadoopinwinuitls.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");

  • 相关阅读:
    ES6 解构
    flutter
    selenium
    selenium
    python
    selenium
    selenium
    selenium
    selenium
    selenium- SMTP发送邮件
  • 原文地址:https://www.cnblogs.com/llphhl/p/6607275.html
Copyright © 2011-2022 走看看