HBase的单节点集群详细启动步骤(分为Zookeeper自带还是外装)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HBase的单节点集群详细启动步骤(分为Zookeeper自带还是外装)相关的知识,希望对你有一定的参考价值。

 

 

 


  伪分布模式下,如(weekend110)
hbase-env.sh配置文档中的HBASE_MANAGES_ZK的默认值是true,它表示HBase使用自身自带的Zookeeper实例。
但是,该实例只能为单机或伪分布模式下的HBase提供服务。


  若是分布式模式,则需要配置自己的Zookeeper集群。如(HadoopMaster、HadoopSlave1、HadoopSlave2)
hbase-env.sh配置文档中的HBASE_MANAGES_ZK的默认值是true,它表示,分布式模式里,在启动HBase时,HBase将Zookeeper作为自身的一部分运行。进程变为HQuorumPeer。
  hbase-env.sh配置文档中的HBASE_MANAGES_ZK的默认值是false,它表示,分布式模式里,需要,先提前手动,每个节点都手动启动Zookeeper,然后再在主节点上启动HBase时,进程变为HMaster(HadoopMaster节点)。

 

[[email protected] app]$ cd hadoop-2.4.1/
[[email protected] hadoop-2.4.1]$ jps
6362 Jps
[[email protected] hadoop-2.4.1]$ sbin/start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on [weekend110]
weekend110: starting namenode, logging to /home/hadoop/app/hadoop-2.4.1/logs/hadoop-hadoop-namenode-weekend110.out
weekend110: starting datanode, logging to /home/hadoop/app/hadoop-2.4.1/logs/hadoop-hadoop-datanode-weekend110.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /home/hadoop/app/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-weekend110.out
starting yarn daemons
starting resourcemanager, logging to /home/hadoop/app/hadoop-2.4.1/logs/yarn-hadoop-resourcemanager-weekend110.out
weekend110: starting nodemanager, logging to /home/hadoop/app/hadoop-2.4.1/logs/yarn-hadoop-nodemanager-weekend110.out
You have new mail in /var/spool/mail/root
[[email protected] hadoop-2.4.1]$ jps
6587 DataNode
6774 SecondaryNameNode
6910 ResourceManager
7318 Jps
7018 NodeManager
6493 NameNode
[[email protected] hadoop-2.4.1]$ cd ..
[[email protected] app]$ cd hbase-0.96.2-hadoop2/
[[email protected]weekend110 hbase-0.96.2-hadoop2]$ bin/start-hbase.sh
starting master, logging to /home/hadoop/app/hbase-0.96.2-hadoop2/logs/hbase-hadoop-master-weekend110.out
[[email protected] hbase-0.96.2-hadoop2]$ jps
7434 HMaster
6587 DataNode
6774 SecondaryNameNode
6910 ResourceManager
7573 Jps
7018 NodeManager
6493 NameNode
You have new mail in /var/spool/mail/root
[[email protected] hbase-0.96.2-hadoop2]$ hbase shell
2016-11-02 11:56:28,235 INFO [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available
HBase Shell; enter ‘help<RETURN>‘ for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.96.2-hadoop2, r1581096, Mon Mar 24 16:03:18 PDT 2014

hbase(main):001:0>

以上是关于HBase的单节点集群详细启动步骤(分为Zookeeper自带还是外装)的主要内容,如果未能解决你的问题,请参考以下文章

HBase的多节点集群详细启动步骤(3或5节点)(分为Zookeeper自带还是外装)

hbase全分布安装配置

centos7虚拟机在集群zookeeper上面配置hbase的具体操作步骤

Hbase 分布式环境安装部署

使用 docker 的单节点 redis 集群

ActiveMQ的单节点和集群部署