Hadoop-在linux安装Hbase

1.下载二进制安装包 https://www.apache.org/dyn/closer.lua/hbase/2.2.2/hbase-2.2.2-bin.tar.gz

2.解压

tar -zxvf hbase-2.2.2-bin.tar.gz

3.配置环境变量

export HBASE_HOME=/opt/hbase-2.2.2

export PATH=${JAVA_HOME}/bin:${HBASE_HOME}/bin:$PATH

执行: source /etc/profile 立即生效

查看Hbase版本: hbase version

3.修改配置文件

配置 HBASE_HOME/conf/ 下

hbase-env.sh

hbase-site.xml

<configuration>
        <property>
                <name>hbase.rootdir</name>
                <value>file:///opt/hbase-2.2.2/dog/hbasedata</value>
        </property>
        <property>
                <name>hbase.zookeeper.property.dataDir</name>
                <value>/opt/hbase-2.2.2/dog/zookeeper</value>
        </property>
</configuration>

start-hbase.sh  启动hbase

stop-hbase.sh 停止hbase

启动 hbase shell

发布了296 篇原创文章 · 获赞 70 · 访问量 55万+

猜你喜欢

转载自blog.csdn.net/feicongcong/article/details/103549130