系统为Mac OS10.15
JAVA版本 Java 8 Update 221
输入hbase命令status 报错ERROR: KeeperErrorCode = NoNode for /hbase/master
恳求各位的帮忙 非常感谢

以下为文件的配置信息
hadoop core-site.xml

<configuration>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>file:/Users/wangzhengze/Downloads/apps/hadoop-3.2.1/tmp</value>
        <description>Abase for other temporary directories.</description>
    </property>
    <property>
        <name>fs.defaultFS</name>
        <value>hdfs://localhost:9000</value>
    </property>
</configuration>
hdfs-site.xml
<property>
    <name>dfs.replication</name>
    <value>1</value>
</property>
<property>
    <name>dfs.namenode.name.dir</name>
    <value>file:/Users/wangzhengze/Downloads/apps/hadoop-3.2.1/tmp/dfs/name</value>
</property>
<property>
    <name>dfs.datanode.data.dir</name>
    <value>file:/Users/wangzhengze/Downloads/apps/hadoop-3.2.1/tmp/dfs/data</value>
</property>
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/

hbase配置文件hbase-site.xml

    <configuration>
            <property>
                    <name>hbase.rootdir</name>
                    <value>hdfs://localhost:9000/hbase</value>
            </property>
            <property>
                    <name>hbase.cluster.distributed</name>
                    <value>true</value>
            </property>
    </configuration>
hbase-env.sh

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/
export HBASE_MANAGES_ZK=true```

hadoop和hbase jps启动情况
1313 SecondaryNameNode
1075 NameNode
5827 Main
7318 Jps
3016 HQuorumPeer
1177 DataNode
3934 HRegionServer

./bin/start-hbase.sh 输出日志信息

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.hadoop.hbase.util.UnsafeAvailChecker (file:/Users/wangzhengze/Downloads/apps/hbase-2.2.1/lib/hbase-common-2.2.1.jar) to method java.nio.Bits.unaligned()
WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.hbase.util.UnsafeAvailChecker
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
localhost: running zookeeper, logging to /Users/wangzhengze/Downloads/apps/hbase-2.2.1/bin/../logs/hbase-wangzhengze-zookeeper-wangzhengze.local.out
localhost: Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
localhost: WARNING: An illegal reflective access operation has occurred
localhost: WARNING: Illegal reflective access by org.apache.hadoop.hbase.util.UnsafeAvailChecker (file:/Users/wangzhengze/Downloads/apps/hbase-2.2.1/lib/hbase-common-2.2.1.jar) to method java.nio.Bits.unaligned()
localhost: WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.hbase.util.UnsafeAvailChecker
localhost: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
localhost: WARNING: All illegal access operations will be denied in a future release
running master, logging to /Users/wangzhengze/Downloads/apps/hbase-2.2.1/bin/../logs/hbase-wangzhengze-master-wangzhengze.local.out
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
: regionserver running as process 3934. Stop it first.```
 
./bin/hbase shell 输出日志
```Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.io.FilenoUtil (file:/Users/wangzhengze/Downloads/apps/hbase-2.2.1/lib/ruby/jruby-complete-9.1.13.0.jar) to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of org.jruby.util.io.FilenoUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2019-10-11 23:37:30,713 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
For Reference, please visit: http://hbase.apache.org/2.0/book.html#shell
Version 2.2.1, rf93aaf770cce81caacbf22174dfee2860dbb4810, 2019年 09月 10日 星期二 14:28:27 CST
Took 0.0032 seconds                                                             
hbase(main):001:0> ```
 
输入hbase命令报错信息
```hbase(main):001:0> status
 
ERROR: KeeperErrorCode = NoNode for /hbase/master
 
For usage try 'help "status"'
 
Took 0.0523 seconds                                                             
hbase(main):002:0> ```
 
 
hbase775 
 评论

奈落
2019-10-11
2 答案
0
系统为Mac OS10.15
JAVA版本 Java 8 Update 221


检查下zookeeper的状态,以及日志,用zk-cli查看是否有 /hbase/master节点
不要使用hbase内置的zookeeper,自己搭建zookeeper集群,还有zk的数据目录要指定到非tmp目录下

这个错误的意思就是再zk中找不到/hbase/master节点

在hbase-site.xml中添加

<property>
     <name>zookeeper.znode.parent</name>
     <value>/hbase/master</value>
 </property>
由于hbase依赖zookeeper,所以必须要保证zk的正确性
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐