hbase2.0.4完全分散式環境搭建
安裝文件:
1.下載安裝
[root@node1 ~]# wget
[root@node1 ~]# tar xvf hbase-2.0.4-bin.tar.gz -C /opt/
[root@node1 conf]# vim hbase-site.xml
hbase.rootdir hdfs://mycluster:8020/hbase --寫HDFS地址hbase.cluster.distributed --開啟hbase叢集true hbase.zookeeper.quorum --zookeeper主機名node1,node2,node3
[root@node1 conf]# vim regionservers --資料節點的主機名
node1
node2
node3
node4
[root@node1 conf]# vim hbase-env.sh
export HBASE_CLASSPATH=/opt/hadoop-2.8.5/etc/hadoop/
export JAVA_HOME=/usr/java/jdk1.8.0_202-amd64/
[root@node1 conf]# cd /opt/
[root@node1 opt]# scp -r /opt/hbase-2.0.4 node2:/opt/
[root@node1 opt]# scp -r /opt/hbase-2.0.4 node3:/opt/
[root@node1 opt]# scp -r /opt/hbase-2.0.4 node4:/opt/
[root@node1 opt]# vim /etc/profile
export HBASE_HOME=/opt/hbase-2.0.4
export PATH=$PATH:$HABSE_HOME/bin
[root@node1 opt]# source /etc/profile
2.啟動hbase服務
[root@node1 opt]# cd hbase-2.0.4/bin/
[root@node1 bin]# ./start-hbase.sh
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/hbase-2.0.4/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/hadoop-2.8.5/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/hbase-2.0.4/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/hadoop-2.8.5/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
node1: running zookeeper, logging to /opt/hbase-2.0.4/bin/../logs/hbase-root-zookeeper-node1.out
node2: running zookeeper, logging to /opt/hbase-2.0.4/bin/../logs/hbase-root-zookeeper-node2.out
node3: running zookeeper, logging to /opt/hbase-2.0.4/bin/../logs/hbase-root-zookeeper-node3.out
running master, logging to /opt/hbase-2.0.4/logs/hbase-root-master-node1.out
node1: running regionserver, logging to /opt/hbase-2.0.4/bin/../logs/hbase-root-regionserver-node1.out
node3: running regionserver, logging to /opt/hbase-2.0.4/bin/../logs/hbase-root-regionserver-node3.out
node4: running regionserver, logging to /opt/hbase-2.0.4/bin/../logs/hbase-root-regionserver-node4.out
node2: running regionserver, logging to /opt/hbase-2.0.4/bin/../logs/hbase-root-regionserver-node2.out
[root@node1 bin]#
3.使用hbase shell命令
[root@node1 bin]# ./hbase shell
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
For Reference, please visit:
Version 2.0.4, r205e39c5704bf38568b34926dde9f1ee76e6b5d0, Fri Dec 28 22:13:42 PST 2018
Took 0.0048 seconds
hbase(main):001:0> create 't1','q1','w1','e1' --建立t1表
Created table t1
Took 3.0584 seconds
=> Hbase::Table - t1
hbase(main):002:0>
4.web頁面訪問
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25854343/viewspace-1394723/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- hadoop完全分散式環境搭建Hadoop分散式
- Hbase偽分散式環境搭建分散式
- Hadoop環境搭建(二)分散式Hadoop分散式
- Zookeeper — 本地完全分散式 搭建分散式
- Hbase完全分散式的搭建分散式
- Hadoop hdfs完全分散式搭建教程Hadoop分散式
- Hadoop框架:叢集模式下分散式環境搭建Hadoop框架模式分散式
- hadoop3.1.0 HDFS快速搭建偽分散式環境Hadoop分散式
- Hadoop 及Spark 分散式HA執行環境搭建HadoopSpark分散式
- hadoop之旅2-centerOS7: 搭建分散式hadoop環境HadoopROS分散式
- Hadoop入門(一)之Hadoop偽分散式環境搭建Hadoop分散式
- OAuth2.0分散式系統環境搭建OAuth分散式
- 分散式基礎&專案環境搭建_學習筆記分散式筆記
- Hadoop3.x完全分散式搭建(詳細)Hadoop分散式
- 分散式事務 TCC-Transaction 原始碼分析 —— 除錯環境搭建分散式原始碼除錯
- 分散式系統與叢集環境分散式
- JEESZ分散式框架開發環境部署分散式框架開發環境
- EOS開發完全解析(一):Ubuntu上搭建EOS開發環境Ubuntu開發環境
- [原始碼解析] TensorFlow 分散式環境(5) --- Session原始碼分散式Session
- [原始碼解析] TensorFlow 分散式環境(4) --- WorkerCache原始碼分散式
- [Hadoop踩坑]叢集分散式環境配置Hadoop分散式
- 環境搭建
- 從零搭建嵌入式開發環境開發環境
- Hadoop完全分散式叢集配置Hadoop分散式
- 搭建JEESZ分散式架構1--CentOs下安裝jdk7(環境準備)分散式架構CentOSJDK
- 搭建lnmp環境LNMP
- 搭建gym環境
- Linuxg環境搭建Linux
- JDK環境搭建JDK
- Angular環境搭建Angular
- anaconda 環境搭建
- ReactNative環境搭建React
- swoft 環境搭建
- Flutter環境搭建Flutter
- 搭建Java環境Java
- Supervisor 環境搭建
- react環境搭建React
- FNA環境搭建
- FNA 環境搭建