記HBase叢集安裝
HBase實驗環境:
172.16.110.133 laodeng3.localdomain
172.16.110.132 laodeng2.localdomain
172.16.110.134 laodeng4.localdomain
使用者:hbase password:hbase
Node Name Master Zookeeper RegionServer
172.16.110.133 Y Y N
172.16.110.134 backup Y Y
172.16.110.132 N Y Y
下載hbase的安裝包
http://mirror.bit.edu.cn/apache/hbase/hbase-0.98.8/hbase-0.98.8-hadoop2-bin.tar.gz
步驟
一、Password-Less SSH Access
1、配置133 到134、132 的 hbase使用者Password-Less SSH Access
2、134為backup master
配置在134-〉133的hbase使用者Password-Less SSH Access
二、133上的配置
安裝jdk 1.6 (其他兩個節點也要安裝,並配置JAVA_HOME)
安裝hbase :tar xzvf hbase-0.98.8-hadoop2-bin.tar.gz 到/opt/hbase
1、配置RegionServer
vi conf/regionservers
laodeng2.localdomain
laodeng4.localdomain
2、配置a backup master
Create a new file in conf/ called backup-masters
vi conf/backup-masters
增加laodeng4.localdomain
3、配置Zookeeper (更多配置參考:http://hbase.apache.org/book/zookeeper.html)
vi conf/hbase-site.xml
注意:hbase使用者在/usr/local上要有寫許可權
注意:zookeeper跑在三個節點上,故還需要在133上打通自身的Password-Less SSH Access
4、配置JAVA_HOME
vi conf/hbase-env.sh
export JAVA_HOME=/usr/java/jdk1.6.0_45
5、遠端釋出hbase到132、134上
[hbase@laodeng3 opt]$ scp -r hbase hbase@laodeng4.localdomain:/opt
[hbase@laodeng3 opt]$ scp -r hbase hbase@laodeng2.localdomain:/opt
三、啟動和測試Hbase Cluster
[hbase@laodeng3 hbase]$ ./bin/start-hbase.sh
laodeng3.localdomain: starting zookeeper, logging to /opt/hbase/bin/../logs/hbase-hbase-zookeeper-laodeng3.localdomain.out
laodeng2.localdomain: starting zookeeper, logging to /opt/hbase/bin/../logs/hbase-hbase-zookeeper-laodeng2.localdomain.out
laodeng4.localdomain: starting zookeeper, logging to /opt/hbase/bin/../logs/hbase-hbase-zookeeper-laodeng4.localdomain.out
starting master, logging to /opt/hbase/bin/../logs/hbase-hbase-master-laodeng3.localdomain.out
laodeng2.localdomain: starting regionserver, logging to /opt/hbase/bin/../logs/hbase-hbase-regionserver-laodeng2.localdomain.out
laodeng4.localdomain: starting regionserver, logging to /opt/hbase/bin/../logs/hbase-hbase-regionserver-laodeng4.localdomain.out
laodeng4.localdomain: starting master, logging to /opt/hbase/bin/../logs/hbase-hbase-master-laodeng4.localdomain.out
結果:
[hbase@laodeng3 hbase]$ jps
9893 Jps
9649 HMaster
9584 HQuorumPeer
[hbase@laodeng4 ~]$ jps
12183 HMaster
11948 HQuorumPeer
12398 Jps
12067 HRegionServer
[hbase@laodeng2 ~]$ jps
20800 HRegionServer
20689 HQuorumPeer
21006 Jps
可以查詢到我在偽叢集實驗時建立的表:
[hbase@laodeng3 hbase]$ ./bin/hbase shell
2014-12-16 10:55:32,559 INFO [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available
HBase Shell; enter 'help
Type "exit
Version 0.98.8-hadoop2, r6cfc8d064754251365e070a10a82eb169956d5fe, Fri Nov 14 18:26:29 PST 2014
hbase(main):001:0> list
TABLE
2014-12-16 10:55:39,772 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
denglt
denglt2
2 row(s) in 2.4780 seconds
=> ["denglt", "denglt2"]
hbase(main):002:0> scan 'denglt'
ROW COLUMN+CELL
1 column=info:age, timestamp=1418457735162, value=38
1 column=info:name, timestamp=1418457663195, value=dlt
3 column=info:name, timestamp=1418458734676, value=zyy
2 row(s) in 0.2840 seconds
web管理:
http://172.16.110.133:60010/master-status
http://172.16.110.132:60030/rs-status
http://172.16.110.134:60030/rs-status
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/195110/viewspace-1370076/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- TiDB叢集安裝TiDB
- StarRocks 叢集安裝
- Kubernetes 叢集安裝
- 【redis叢集安裝】Redis
- cdh 叢集安裝
- kubernetes叢集安裝
- ElasticSearch 6.6.0叢集安裝Elasticsearch
- Hadoop叢集安裝配置Hadoop
- Elasticsearch 叢集安裝部署Elasticsearch
- ZooKeeper叢集安裝和部署
- elasticsearch叢集安裝(3臺)Elasticsearch
- Flink(四)叢集安裝(二)
- Kafka叢集安裝Version2.10Kafka
- redis cluster 4.0.9 叢集安裝搭建Redis
- Zookeeper介紹與叢集安裝
- k8s 叢集安裝K8S
- WAS中介軟體垂直叢集安裝
- WAS中介軟體水平叢集安裝
- k8s叢集安裝-kubeadm安裝K8S
- elasticsearch叢集安裝+安全驗證+kibana安裝Elasticsearch
- Oracle 19c叢集安裝踩坑記錄-多私網Oracle
- WeblogicServer11G叢集安裝與配置WebServer
- MariaDB +Centos+MMM 叢集安裝除錯CentOS除錯
- ceph叢集安裝報錯解決方法
- centos7下zookeeper叢集安裝部署CentOS
- etcd簡介及叢集安裝部署使用
- ElasticSearch 叢集安全Elasticsearch
- Kubernetes叢集部署史上最詳細(一)Kubernetes叢集安裝
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- 完全分散式模式hadoop叢集安裝與配置分散式模式Hadoop
- 02.Flink的單機wordcount、叢集安裝
- Hadoop3.0完全分散式叢集安裝部署Hadoop分散式
- elasticsearch-7.17.15 叢集安裝部署及kibana配置Elasticsearch
- Spark2.4.5叢集安裝與本地開發Spark
- 大資料叢集搭建 – 2. CDH叢集安裝 – NTP,MYSQL,nginx安裝大資料MySqlNginx
- redis-cluster叢集安裝(基於redis-3.2.10)Redis
- 第06講:Flink 叢集安裝部署和 HA 配置
- RAC之grid叢集安裝及ASM磁碟組配置ASM