hbase 集群在 hadoop集群下安装

(1) 版本

  hadoop hadoop-2.10.1.tar.gz

hbase-2.4.0-bin.tar.gz

下载源

hbase安装

https://segmentfault.com/a/1190000022358299

https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/2.4.0/

(2) 安装

主要参考 如下1.

注意点:

使用了zookeeper 在s141,142,143

而hadoop路径,如果时高可用的HDFS,可以直接写nameservices,但需要将 core-site.xml文件和hdfs-site.xml拷贝到hbase配置目录中

https://blog.csdn.net/lichenglong33/article/details/103478451

https://blog.csdn.net/qq_36087420/article/details/107204138

https://blog.csdn.net/a1361585/article/details/101954834

(3) 问题发现与解决

/usr/local/xcall.sh "source /etc/profile;jps"

下本机master,regionserver及各分机的regionserver都正常的情况 下。

hbase shell 下面,如果输入list显示server连接异常。可以 

原因是由于hadoop的安全模式打开了,解决方法:

hdfs dfsadmin -safemode leave

如果出现了

http://10.30.2.5:50071/dfshealth.html#tab-overview里说明hbase的一些存储块异常。

Please check the logs or run fsck in order to identify the missing blocks. See the Hadoop FAQ for common causes and potential solutions.

hadoop fsck -delete

然后再通过 /usr/local/hbase/bin/stop-hbase.sh .如果执行异常,可以 hbase-daemon.sh stop master;  hbase-daemons.sh stop regionserver 这样也一样。

然后再/usr/local/hbase/bin/star-hbase.sh

(4) 测试 

 hbase shell 

 list

猜你喜欢

转载自blog.csdn.net/dualvencsdn/article/details/112905925