当前位置:   article > 正文

Hbase 伪分布式安装 - UbuntuServer2204

Hbase 伪分布式安装 - UbuntuServer2204

Hbase 伪分布式安装 - UbuntuServer2204

安装伪分布Hadoop

安装 zookeeper

mkdir /export/data/zookeeper/data -p
mkdir /export/data/zookeeper/log -p
  • 1
  • 2
cd /export/softpackages/
tar -xvf apache-zookeeper-3.8.4-bin.tar.gz
  • 1
  • 2
mv apache-zookeeper-3.8.4-bin /export/servers/zookeeper-3.8.4
  • 1
cd /export/servers/zookeeper-3.8.4/conf/
cp zoo_sample.cfg zoo.cfg
vim zoo.cfg
  • 1
  • 2
  • 3
server.1=IP地址:2888:3888
dataDir=/export/data/zookeeper/data
dataDirLog=/export/data/zookeeper/log
clientPort=2181
  • 1
  • 2
  • 3
  • 4
echo 1 > /export/servers/zookeeper-3.8.4/myid
  • 1
sudo vim /etc/profile
  • 1
# zookeeper 环境变量配置
export ZOOKEEPER_HOME=/export/servers/zookeeper-3.8.4
export PATH=export PATH=$ZOOKEEPER_HOME/bin:$PATH
  • 1
  • 2
  • 3
source /etc/profile
  • 1
zkServer.sh start
  • 1

安装 Hbase

cd /export/softpackages/
tar -xvf hbase-2.5.8-bin.tar.gz
mv hbase-2.5.8 /export/servers/
  • 1
  • 2
  • 3
sudo vim /etc/profile
  • 1
# hbase 环境变量
HBASE_HOME=/export/servers/hbase-2.5.8
export PATH=$HBASE_HOME/bin:$PATH
  • 1
  • 2
  • 3
source /etc/profile
  • 1
vim /export/servers/hbase-2.5.8/conf/hbase-env.sh
  • 1
export JAVA_HOME=/export/servers/jdk8
export HBASE_MANAGES_ZK=false
  • 1
  • 2
vim /export/servers/hbase-2.5.8/conf/hbase-site.xml
  • 1
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
    <property>
        <name>hbase.cluster.distributed</name>
        <value>true</value>
    </property>
    <property>
        <name>hbase.wal.provider</name>
        <value>filesystem</value>
    </property>
    <property>
        <name>hbase.tmp.dir</name>
        <value>./tmp</value>
    </property>
    <property>
        <name>hbase.rootdir</name>
        <value>hdfs://127.0.0.1:9000/hbase</value>
    </property>
    <property>
        <name>hbase.zookeeper.property.dataDir</name>
        <value>/export/data/zookeeper/data/</value>
    </property>
    <property>
        <name>hbase.unsafe.stream.capability.enforce</name>
        <value>false</value>
    </property>
    <property>
        <name>hbase.zookeeper.property.clientPort</name>
        <value>2181</value>
        <description>Property from ZooKeeper's config zoo.cfg.The port at which the clients will connect.</description>
    </property>

    <property>
        <name>hbase.zookeeper.quorum</name>
        <value>192.168.52.128</value>
        <description>Comma separated list of servers in the ZooKeeper Quorum.</description>
    </property>
</configuration>

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41

启动 hbase

start-hbase.sh
  • 1

链接 hbase

hbase shell
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/440416
推荐阅读
相关标签
  

闽ICP备14008679号