zoukankan      html  css  js  c++  java
  • 【异常】Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting a

    HMaster和HRegionServer是Hbase的两个子进程,但是使用jps发现没有启动起来,所以去我们配置的logs查看错误信息。提示:
    Could not start ZK at requested port of 2181.  ZK was started at port: 2182.  Aborting as clients (e.g. shell) will not be able to find this ZK quorum.

    但是在hbase-env.sh文件中设置了export HBASE_MANAGES_ZK=false
    设置不使用自带zookeeper,这一步设置完按理说就可以使用独立的zookeeper程序了,但是还是报错。很明显,这是启动自带zookeeper与独立zookeeper冲突了。因为把hbase.cluster.distributed设置为false,也就是让hbase以standalone模式运行时,依然会去启动自带的zookeeper。

    所以要做如下设置,值为true:
    vim conf/hbase-site.xml
    <property>
                    <name>hbase.cluster.distributed</name>
                   <value>true</value> 
    </property>

  • 相关阅读:
    mysql数据库常用命令
    二维码的生成--后台版
    软件构建--目录
    软件构建--项目总结
    软件构建--产品测试
    软件构建--产品研发
    软件构建--系统设计
    百度分享代码
    JS定时跳转URL并输出剩余秒数
    c#生成word文档
  • 原文地址:https://www.cnblogs.com/huomei/p/12112800.html
Copyright © 2011-2022 走看看