hbase伪分布式安装(单节点安装)

时间:2023-11-14 10:25:44

hbase伪分布式安装(单节点安装)

1.    前提配置好java,环境java变量
    上传jdk1.7
    rpm  -ivh  jdk
2.    上传hbase的压缩包,解压,配置hbase环境变量,修改配置文件(hbase-env.sh, hbase-site.xml)
   2.1 解压
hbase伪分布式安装(单节点安装)
   2.2 配置hbase环境变量
mv  hbase  /home
cd  hbase/bin
hbase伪分布式安装(单节点安装)
vi  /etc/profile

hbase伪分布式安装(单节点安装)

source  /etc/profile
   2.2 修改配置文件(hbase-env.sh, hbase-site.xml)
cd  conf
vi  hbase-env.sh
hbase伪分布式安装(单节点安装)
hbase伪分布式安装(单节点安装)
vi  hbase-site.xml
hbase伪分布式安装(单节点安装)
3.  测试hbase
    启动hbase   start-hbase.sh        
    netstat  -npl  |  grep  java
    web端口:60010      node5:60010
hbase伪分布式安装(单节点安装)
    停止hbase   stop-hbase.sh
    进入hbase shell命令,前提先启动hbase  hbase  shell
hbase伪分布式安装(单节点安装)
    help
hbase伪分布式安装(单节点安装)
    退出hbase shell命令  quit
hbase伪分布式安装(单节点安装)