伪分布式部署HBase(基于伪分布式Hadoop)

$ wget http://mirror.bit.edu.cn/apache/hbase/2.1.5/hbase-2.1.5-bin.tar.gz
$ tar -zxvf hbase-2.1.5-bin.tar.gz
$ cd hbase-2.1.5/conf
$ gedit hbase-site.xml
#
#<property>
#  <name>hbase.cluster.distributed</name>
#  <value>true</value>
#</property>
#<property>
#  <name>hbase.rootdir</name>
#  <value>hdfs://localhost:8020/hbase</value>
#</property>
#<property>
#  <name>hbase.zookeeper.property.dataDir</name>
#  <value>/home/yong/hbase/zookeeper</value>
#</property>

$ rm -rf /tmp
$ hdfs namenode -format
$ start-dfs.sh
$ start-yarn.sh
$ mr-jobhistory-daemon.sh start historyserver

$ rm -rf /home/yong/hbase/zookeeper
$ rm -rf $HBASE_HOME/logs
$ gedit ~/.bashrc
#export HBASE_HOME=/mnt/hgfs/hadoop-env/hbase-2.1.5
#export PATH=$PATH:$HBASE_HOME/bin
$ source ~/.bashrc
$ start-hbase.sh
#if Error: JAVA_HOME is not set
$ gedit $HBASE_HOME/conf/hbase-env.sh
#export JAVA_HOME=/mnt/hgfs/java-env/jdk1.8.0_211
#if java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder
$ cp $HBASE_HOME/lib/client-facing-thirdparty/htrace-core-3.1.0-incubating.jar $HBASE_HOME/lib/
#if java.lang.IllegalStateException: The procedure WAL relies on the ability to hsync for proper operation during component failures, but the underlying filesystem does not support doing so. Please check the config value of 'hbase.procedure.store.wal.use.hsync' to set the desired level of robustness and ensure the config value of 'hbase.wal.dir' points to a FileSystem mount that can provide it.
$ gedit $HBASE_HOME/conf/hbase-site.xml
#<property>
#  <name>hbase.unsafe.stream.capability.enforce</name>
#  <value>false</value>
#</property>
#访问http://localhost:16010
$ stop-hbase.sh

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值