記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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- hbase叢集安裝
- hadoop+hbase+zookeeper叢集安裝方法Hadoop
- 【redis叢集安裝】Redis
- zookeeper 叢集安裝
- kafka叢集安裝Kafka
- StarRocks 叢集安裝
- cdh 叢集安裝
- ElasticSearch 6.6.0叢集安裝Elasticsearch
- TiDB叢集安裝TiDB
- Elasticsearch 叢集安裝部署Elasticsearch
- 【Zookeeper】zookeeper叢集安裝
- Hadoop叢集安裝Hadoop
- Hadoop叢集安裝配置Hadoop
- kubernetes叢集安裝
- elasticsearch叢集安裝(3臺)Elasticsearch
- Storm叢集安裝與部署ORM
- ZooKeeper叢集安裝和部署
- linux ZooKeeper叢集安裝Linux
- WAS叢集安裝配置過程
- Kubernetes 叢集安裝
- redis cluster 4.0.9 叢集安裝搭建Redis
- WAS中介軟體垂直叢集安裝
- WAS中介軟體水平叢集安裝
- mongo副本集叢集安裝配置Go
- K8S叢集安裝K8S
- CDH5 叢集安裝教程H5
- Hadoop 叢集安裝與配置Hadoop
- hadoop叢集安裝檔案Hadoop
- Flink(四)叢集安裝(二)
- Zookeeper介紹與叢集安裝
- k8s 叢集安裝K8S
- Kafka叢集安裝Version2.10Kafka
- Redis概述和單機、叢集安裝Redis
- Hadoop叢集安裝詳細教程Hadoop
- ElasticSearch 2.3.3 叢集安裝+ Marvel + kibanaElasticsearch
- oracle雙機叢集安裝小結Oracle
- Oracle 19c叢集安裝踩坑記錄-多私網Oracle
- ceph叢集安裝報錯解決方法