伪分布式部署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
#
#
#  hbase.cluster.distributed
#  true
#
#
#  hbase.rootdir
#  hdfs://localhost:8020/hbase
#
#
#  hbase.zookeeper.property.dataDir
#  /home/yong/hbase/zookeeper
#

$ 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
#
#  hbase.unsafe.stream.capability.enforce
#  false
#
#访问http://localhost:16010
$ stop-hbase.sh

 

你可能感兴趣的:(大数据)