hadoop集群的搭建

搭建真正的zookeeper集群

Hbase需要安装在成功部署的Hadoop平台,并且要求Hadoop已经正常启动。

同时,HBase需要集群部署,我们分别把HBase 部署到主机:guoyansi128  guoyansi129  guoyansi130

1.下载hbase-1.2.4-bin.tar.gz;并且上传到/usr/local/src中

2.解压缩并且把解压缩后的文件移动到上级目录

3.修改 /usr/lcoal/hbase-1.4.8/conf/hbase-env.sh文件

去掉exprot JAVA_HOME前面的#号,并且修改jdk安装目录

Hbase的集群安装

4.修改conf/hbasie-site.xml文件

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
/**
 *
 * 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://guoyansi128:9000/hbase</value>
    </property>
    <property>
        <name>hbase.zookeeper.quorum</name>
        <value>guoyansi128</value>
    </property>
    <property>
        <name>hbase.master.info.port</name>
        <value>60010</value>
    </property>
</configuration>
View Code

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2021-09-10
  • 2021-07-03
  • 2021-12-23
  • 2021-04-14
  • 2021-08-29
  • 2021-10-22
猜你喜欢
  • 2021-10-20
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
相关资源
相似解决方案