栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

一键安装Hbase

一键安装Hbase

安装并启动Hbase,首先启动Hadoop  以及 zookeeper
[root@gree128 ~]# start-all.sh

[root@gree128 install]# cd /opt/soft/zepplin090/conf/
[root@gree128 conf]# zkServer.sh start

关闭 stop-hbase.sh
       zkServer.sh stop
      ./zeppelin-daemon.sh  stop
       stop-all.sh
     
[root@gree128 conf]# cd /opt/soft/zepplin090/bin/
[root@gree128 bin]# ./zeppelin-daemon.sh  stop

     
一、安装Hbase
[root@gree128 conf]# cd /opt/soft/install/
[root@gree128 install]# ls
hadoop260                      hive-1.1.0-cdh5.14.2.tar.gz
hadoop-2.6.0-cdh5.14.2.tar.gz  zeppelin-0.9.0-preview1-bin-all.tgz
hbase-1.2.0-cdh5.14.2.tar.gz   zookeeper-3.4.5-cdh5.14.2.tar.gz
hive-1.1.0-cdh5.14.2
[root@gree128 install]# tar -zxf ./hbase-1.2.0-cdh5.14.2.tar.gz -C /opt/soft
[root@gree128 install]# ls
hadoop260                      hive-1.1.0-cdh5.14.2.tar.gz
hadoop-2.6.0-cdh5.14.2.tar.gz  zeppelin-0.9.0-preview1-bin-all.tgz
hbase-1.2.0-cdh5.14.2.tar.gz   zookeeper-3.4.5-cdh5.14.2.tar.gz
hive-1.1.0-cdh5.14.2
[root@gree128 install]# cd /opt/soft
[root@gree128 soft]# ls
dirtest                hive110    out        test_20211026-1.0-SNAPSHOT.jar
hadoop260              install    shell2     zepplin090
hbase-1.2.0-cdh5.14.2  nohup.out  shelldemo  zookeeper345
[root@gree128 soft]# mv  hbase-1.2.0-cdh5.14.2   hbase120
[root@gree128 soft]# ls
dirtest    hbase120  install    out     shelldemo                       zepplin090
hadoop260  hive110   nohup.out  shell2  test_20211026-1.0-SNAPSHOT.jar  zookeeper345
[root@gree128 soft]# cd ./hbase120/
[root@gree128 hbase120]# cd ./conf/
[root@gree128 conf]# ls
hadoop-metrics2-hbase.properties  hbase-env.sh      hbase-site.xml    regionservers
hbase-env.cmd                     hbase-policy.xml  log4j.properties
[root@gree128 conf]# echo $JAVA_HOME
/opt/jdk1.8.0_221
[root@gree128 conf]# vi ./hbase-env.sh 
export JAVA_HOME=/opt/jdk1.8.0_221

# Tell Hbase whether it should manage it's own instance of Zookeeper or not.
export Hbase_MANAGES_ZK=false


[root@gree128 conf]# vi ./hbase-site.xml 


  hbase.rootdir
  hdfs://192.168.59.128:9000/hbase


  hbase.cluster.distributed
  true


  hbase.zookeeper.property.dataDir
  /opt/soft/hbase120/hbasedir


  hbase.zookeeper.property.clientPort
  2181


[root@gree128 conf]# vi /etc/profile
#hbase
export Hbase_HOME=/opt/soft/hbase120
export PATH=$PATH:$Hbase_HOME/bin

[root@gree128 conf]# source /etc/profile


二、启动并使用
1、删除      ctrl +  删除键
[root@gree128 conf]# jps
2916 RunJar
1862 NameNode
2534 NodeManager
1991 DataNode
2777 ZeppelinServer
2315 ResourceManager
3515 QuorumPeerMain
2156 SecondaryNameNode
2812 RunJar
3791 Jps
[root@gree128 conf]# start-hbase.sh    (HMaster,HRegionServer)
[root@gree128 conf]# hbase shell 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/651152.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号