HBase 本地模式安装

      HBase 本地模式安装已关闭评论

cd /usr/tmp

wget http://mirrors.hust.edu.cn/apache/hbase/stable/hbase-1.2.6.1-bin.tar.gz

tar -xzvf hbase-1.2.6.1-bin.tar.gz

mv hbase-1.2.6.1 /etc/hbase

vi ~/.bash_profile

JAVA_HOME=you jdk path
export JAVA_HOME

PATH=$PATH:$JAVA_HOME
export PATH
HBASE_HOME= /etc/hbase/
export HBASE_HOME

PATH=$PATH:$HBASE_HOME/bin
export Path

Esc + :wq save

source ~/.bash_profile

进入hbase配置目录

cd /etc/hbase/conf/

编辑文件

vi hbase-env.sh

export JAVA_HOME=you jdk path

vi hbase-site.xml

<configuration>
<property>
    <name>hbase.rootdir</name>
    <value>/hbase</value>
</property>
</configuration>

保存退出

start-hbase.sh

查看启动状态

starting master, logging to /etc/hbase//logs/hbase-root-master-EpaperMysql05.com.out
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0

 

 

© 2018, RuiJi 社区. 版权所有.转载请注明出处