设为首页 加入收藏

TOP

大数据集群环境搭建之一 hadoop-ha高可用安装(三)
2019-10-10 18:15:10 】 浏览:271
Tags:数据 集群 环境 搭建 之一 hadoop-ha 可用 安装
me>yarn.resourcemanager.hostname.rm2</name> <value>jiang03</value> </property> <!-- 指定zk集群地址 --> <property> <name>yarn.resourcemanager.zk-address</name> <value>jiang01:2181,jiang02:2181,jiang03:2181</value> </property> <property> <name>yarn.nodemanager.aux-services</name> <value>mapreduce_shuffle</value> </property> </configuration> yarn-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
  Licensed 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. See accompanying LICENSE file.
-->

<!-- Put site-specific property overrides in this file. -->

<configuration>
         <!-- 指定mr框架为yarn方式 -->
    <property>
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
    </property>
</configuration>
mapred-site.xml
[root@jiang01 servers]#  hadoop version
Hadoop 2.8.5
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r 0b8464d75227fcee2c6e7f2410377b3d53d3d5f8
Compiled by jdu on 2018-09-10T03:32Z
Compiled with protoc 2.5.0
From source with checksum 9942ca5c745417c14e318835f420733
This command was run using /export/servers/hadoop-2.8.5/share/hadoop/common/hadoop-common-2.8.5.jar
[root@jiang01 servers]#
查看hadoop版本

启动zk

[root@jiang01 servers]# 
[root@jiang01 servers]# xcall.sh jps -l
============= jiang01 : jps -l ============
10262 org.apache.zookeeper.server.quorum.QuorumPeerMain
10571 sun.tools.jps.Jps
命令执行成功
============= jiang02 : jps -l ============
10162 sun.tools.jps.Jps
9991 org.apache.zookeeper.server.quorum.QuorumPeerMain
命令执行成功
============= jiang03 : jps -l ============
2275 org.apache.zookeeper.server.quorum.QuorumPeerMain
2436 sun.tools.jps.Jps
命令执行成功
[root@jiang01 servers]# xcall.sh zkServer.sh status
============= jiang01 : zkServer.sh status ============
ZooKeeper JMX enabled by default
Using config: /export/servers/zookeeper-3.4.14/bin/../conf/zoo.cfg
Mode: follower
命令执行成功
============= jiang02 : zkServer.sh status ============
ZooKeeper JMX enabled by default
Using config: /export/servers/zookeeper-3.4.14/bin/../conf/zoo.cfg
Mode: leader
命令执行成功
============= jiang03 : zkServer.sh status ============
ZooKeeper JMX enabled by default
Using config: /export/servers/zookeeper-3.4.14/bin/../conf/zoo.cfg
Mode: follower
命令执行成功
[root@jiang01 servers]#
启动zk

在你配置的各个journalnode节点启动该进程

[root@jiang01 servers]# 
[root@jiang01 servers]# xcall.sh hadoop-daemon.sh start journalnode
============= jiang01 : hadoop-daemon.s
首页 上一页 1 2 3 4 5 下一页 尾页 3/5/5
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇PostgreSQL 常用函数 下一篇SQLyog连接MySQL8.0报2058错误的..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目