安装hbase-2.2.4

安装hbase-2.2.4

安装环境与安装包

设备共3台,IP,系统版本,如下:

haha1 10.1.1.1 centos7.0
haha2 10.1.1.2 centos7.0
haha3 10.1.1.3 centos7.0
hadoop版本已经安装好了,版本hadoop-3.2.1
zookeeper已经安装好了,版本apache-zookeeper-3.6.0-bin.tar.gz
jdk版本 —jdk1.8.0_241
hbase-2.2.4

开始安装

上传安装包并解压,将安装包传送至其他设备:

ssh haha1
rz---上传已经下载的
tar xf hbase-2.2.4-bin.tar.gz 
scp -r hbase-2.2.4/ root@haha2:/opt/	---登录对应的设备上进行解压
ssh haha2
tar xf hbase-2.2.4-bin.tar.gz 
scp -r hbase-2.2.4/ root@haha3:/opt/	---登录对应的设备上进行解压
ssh haha3
tar xf hbase-2.2.4-bin.tar.gz

##hbase需要各个服务器时间保持一致
#haha1
[root@haha1 sbin]# date -s “2020-05-15 15:08:14”
2020年 05月 15日 星期五 15:08:14 CST
[root@haha1 sbin]# date
2020年 05月 15日 星期五 15:08:15 CST
[root@haha1 sbin]#
#haha2
[root@haha2 sbin]# date -s “2020-05-15 15:08:14”
2020年 05月 15日 星期五 15:08:14 CST
[root@haha2 sbin]# date
2020年 05月 15日 星期五 15:08:15 CST
[root@haha2 sbin]#
#haha3
[root@haha2 sbin]# date -s “2020-05-15 15:08:14”
2020年 05月 15日 星期五 15:08:14 CST
[root@haha2 sbin]# date
2020年 05月 15日 星期五 15:08:15 CST
[root@haha2 sbin]#
#配置环境变量,将配置scp至其他节点
[root@haha1 opt]# vi /root/.bash_profile —配置完后保存退出
[root@haha1 opt]# source /root/.bash_profile
[root@haha1 opt]# more /root/.bash_profile
在这里插入图片描述[root@haha1 opt]#scp /root/.bash_profile root@haha2:/root/
[root@haha1 opt]#ssh haha2
[root@haha2 opt]# source /root/.bash_profile
[root@haha2 opt]#scp /root/.bash_profile root@haha2:/root/
[root@haha2 opt]#ssh haha3
[root@haha3 opt]#[root@haha2 opt]#

修改配置文件

[root@haha1 conf]# cd /opt/hbase-2.2.4/conf
[root@haha1 conf]# ll
总用量 44
-rw-r--r--. 1 1001 1001 1811 5月   2 2018 hadoop-metrics2-hbase.properties
-rw-r--r--. 1 1001 1001 4284 11月 28 18:16 hbase-env.cmd
-rw-r--r--. 1 1001 1001 7536 1月  20 13:23 hbase-env.sh
-rw-r--r--. 1 1001 1001 2257 5月   2 2018 hbase-policy.xml
-rw-r--r--. 1 1001 1001  934 5月   2 2018 hbase-site.xml
-rw-r--r--. 1 1001 1001 1169 1月  17 12:25 log4j-hbtop.properties
-rw-r--r--. 1 1001 1001 4977 11月 28 18:16 log4j.properties
-rw-r--r--. 1 1001 1001   10 5月   2 2018 regionservers
[root@haha1 conf]#
[root@haha1 conf]# vi hbase-env.sh
[root@haha1 conf]# more hbase-env.sh
#!/usr/bin/env bash
export JAVA_HOME=/opt/jdk1.8.0_241
export HBASE_LIBRARY_PATH=$HBASE_LIBRARY_PATH:/usr/local/lib
export HBASE_CLASSPATH=/opt/hadoop-3.2.1/etc/hadoop
export HBASE_LOG_DIR=/opt/hbase-2.2.4/logs/hbase
export HBASE_PID_DIR=/opt/hbase-2.2.4/pids/hbase
export HBASE_MANAGES_ZK=false


#
#/**
# * Licensed to the Apache Software Foundation (ASF) under one
# * or more contributor license agreements.  See the NOTICE file
# * distributed with this work for additional information
# * regarding copyright ownership.  The ASF licenses this file
# * to you under the Apache License, Version 2.0 (the
# * "License"); you may not use this file except in compliance
# * with the License.  You may obtain a copy of the License at
# *
# *     http://www.apache.org/licenses/LICENSE-2.0
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值