介绍下Hbase的完全分布式的安装部署,完全分布式的安装同样是基于Hadoop的HDFS底层的,也就是说,要想完成Hbase分布式的安装,那么你的Hadoop坏境也必须是完全分布式的,然后一个Hbase应用配套的部署在一个Hadoop节点上,关于Hadoop的完全分布式的安装部署,散仙以前的博客里有介绍,在这里就不再涉及了,接下来,让我们开始进入正题,如果目前的情况是,你已经会部署Hbase的伪分布式的环境,那么相对来说,再部署完全分布式就容易很多了,当然如果,你是直接上手Hbase的完全分布式的环境,那也没关系,只要你对Hadoop的完全分布式的环境熟悉,那么,散仙相信,部署这个Hbase这个完全分布式的环境,更是容易不过。
环境依旧是hadoop1.2.0版本,habae0.94.8的版本,zookeeper3.4.5的版本,唯一与伪分布式不同的就是,多了2个节点,详细请参考下表配置。
IP地址 | 节点名 | 10.2.143.5 | Master | 10.2.143.36 | Slave | 10.2.143.37 | Slave2 |
完全分布式的配置(基于内置Zookeeper的集群),需要三步才能完成,如下表格所示:
步骤 | 配置文件 | 一 | 配置hbase-env.sh文件 | 二 | 配置hbase-site.xml文件 | 三 | 配置regionservers文件 |
下面开始给出各个步骤需要配置的内容,我们先来看下第一步里面需要配置什么,截图如下:
- # The java implementation to use. Java 1.6 required.
- export JAVA_HOME=/root/jdk1.6.0_45
- # Extra Java CLASSPATH elements. Optional.
- export HBASE_CLASSPATH=/root/hadoop-1.2.0/conf
- # The maximum amount of heap to use, in MB. Default is 1000.
- # export HBASE_HEAPSIZE=1000
- export HBASE_MANAGES_ZK=true
# The java implementation to use. Java 1.6 required. export JAVA_HOME=/root/jdk1.6.0_45 # Extra Java CLASSPATH elements. Optional. export HBASE_CLASSPATH=/root/hadoop-1.2.0/conf # The maximum amount of heap to use, in MB. Default is 1000. # export HBASE_HEAPSIZE=1000 export HBASE_MANAGES_ZK=true
第二步里面的配置内容以及截图如下:
- <?xml version="1.0"?>
- <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
- <!--
- /**
- * Copyright 2010 The Apache Software Foundation
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
- <configuration>
- <property>
- <name>hbase.cluster.distributed</name>
- <value>true</value>
- </property>
- <property>
- <name>hbase.rootdir</name>
- <value>hdfs://10.2.143.5:9090/hbase</value>
- </property>
- <property>
- <name>hbase.master</name>
- <value>10.2.143.5:60000</value>
- </property>
- <property>
- <name>hbase.zookeeper.quorum</name>
- <value>10.2.143.5,10.2.143.36,10.2.143.37</value>
- </property>
- </configuration>
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- /** * Copyright 2010 The Apache Software Foundation * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ --> <configuration> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.rootdir</name> <value>hdfs://10.2.143.5:9090/hbase</value> </property> <property> <name>hbase.master</name> <value>10.2.143.5:60000</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>10.2.143.5,10.2.143.36,10.2.143.37</value> </property> </configuration>
接下来,我们看下,第三步里面的配置内容以及截图如下:
- 10.2.143.5
- 10.2.143.36
- 10.2.143.37
10.2.143.5 10.2.143.36 10.2.143.37
接下来,我们就可以使用scp -r hbase 子节点名称:/目录,命令来进行远程拷贝分发了,截图如下:
然后,我们就可以关闭各个节点上的防火墙,来启动集群了,注意,要先启动Hadoop的集群,然后启动Hbase的集群,顺序不能反,截图如下:
至此,我们的集群已经成功启动,下面散仙访问hbase的端口60010的web页面,可以看到我们的集群信息,截图如下:
注意,为了确保能够在win上访问hbase的端口成功,需要关闭,防火墙以及在win上的hosts文件配置映射信息,截图如下:
至此,我们已经配置完毕,最后关闭集群的时候,要先关闭hbase的集群,然后再关闭hadoop的集群。
相关推荐
图文结合,详细介绍了hbase的安装和部署。通过详细过程化描述,步骤简单高效。希望能够对大家有所帮助。
2.本文软件均安装在自建的目录/export/server/下 :sudo mkdir -p /export/server 创建好目录后要改变该目录的属主和属组 :sudo chown -R ljr:ljr /export 修改目录权限:sudo +771 -R /export -R 表示递归,即...
用独立安装的zookeeper作为协调服务的hbase的完全分布式安装 既能满足你安装zookeeper要求又能满足你安装hbase的要求
hadoop3台机器集群的详细安装部署过程
文档是我自己一步步完成实验写成的,给初学大数据的朋友共享一下希望能有所帮助
ubuntu系统部署完全分布式hadoop时,先部署了zookeeper和hbase
Hbase部署思维导图,便捷整理思路,standalone模式安装、伪分布式、Hbase Shell、完全分布式安装.
│ Day1612_Hbase完全分布式集群的部署配置.mp4 ├─03_笔记 │ Day16[Hbase 企业应用及与MapReduce集成].txt ├─04_代码 ├─06_配置 └─08_作业 Day16[Hbase 企业应用及与MapReduce集成].docx
以参看:SolrCloud 分布式部署。它的主要特性包括:高效、灵活的缓存功能,垂直搜索功 能,Solr 是一个高性能,采用 Java5 开发,基于 Lucene 的全文搜索服务器。同时对其进行 了扩展,提供了比 Lucene 更为丰富的...
实验三 Hadoop完全分布式环境安装 18 实验四 Hadoop商业版安装 36 第二章 分布式文件系统HDFS 45 实验五 HDFS Shell命令使用 45 实验六 Eclipse开发插件配置 64 实验七 HDFS Java API编程 69 第三章 分布式协调服务...
100节课详细讲解,需要的小伙伴自行百度网盘下载,链接见附件,永久有效。...88_hbase_完全分布式01 89_hbase_完全分布式02 90_hbase_代码01 91_hbase_代码02 92_hbase_代码03 93_hbase_代码04 等等
本PPT是作为大学实践课教材,个人制作,现分享给大家!内容就是Hadoop高可用完全分布模式整个部署过程,zookeeper、Hadoop、Hbase等
有的人用这个骗钱,或者上传的都是残缺资源,我这免费给你们真实可用的资源,还免费的,让...第五天 hadoop2.x中HA机制的原理和全分布式集群安装部署及维护 第六天 hbase hive 第七天 storm+kafka 第八天 实战项目
第五天 hadoop2.x中HA机制的原理和全分布式集群安装部署及维护 01-zookeeper.avi 02-zookeeper2.avi 03-NN高可用方案的要点1.avi 04-hadoop-HA机制的配置文件.avi 05-hadoop分布式集群HA模式部署.avi 06-hdfs...
如果要与远程(可能是完全分布式的)HBase 部署进行交互,则需要编辑源代码中的构造函数并重新编译 jar。 使用 asynchbase TwitBase 客户端 此客户端用于与 HBase 通信。 客户端假定您有一个包含用户数据的现有 ...
如果要与远程(可能是完全分布式的)HBase 部署进行交互,则需要编辑源代码中的构造函数并重新编译 jar。 使用 asynchbase TwitBase 客户端 此客户端用于与 HBase 通信。 客户端假定您有一个包含用户数据的现有 ...
59_hadoop完全分布式-hdfs体验 60_hadoop的架构原理图 61_临时文件 62_hadoop的简单介绍, p5 P$ @+ O2 V. p } 63_通过京东的流程讲解hadoop的处理过程; b1 Q* b- v& N, S4 G) j' Y 64_项目流程图 65_架构2 66_跑一个...