当前位置:   article > 正文

hadoop - hdfs HA部署_localhost: nodemanager is running as process 9471.

localhost: nodemanager is running as process 9471. stop it first and ensure

架构图(原理自己百度):

服务规划:

hostname ip zookeeper hdfs journalnode rm zkfc
node03 192.168.0.3 master datanode *:8088
node04 192.168.0.4 follower datanode *:8485
node05 192.168.0.5 follower datanode *:8485
node06 192.168.0.6 datanode *:8485 *:8088
node07 192.168.0.7 namenode:8082(rpc)/50070(http) *
node08 192.168.0.8 namenode:8082/50070 *

临时关防火墙 

在每个节点上执行:systemctl stop firewalld

这个命令是临时关闭,如果重启就失效了,永久关闭可以自行百度找到方法

zookeeper部署 :

下载zookeeper

wget https://dlcdn.apache.org/zookeeper/zookeeper-3.8.0/apache-zookeeper-3.8.0-bin.tar.gz 

解压

tar -zxvf zookeeper.xxx.tar 

配置

进入zookeeper下的conf目录,复制zoo_sample.cfg文件(cp zoo_sample.cfg zoo.cfg)

vim zoo.cfg

  1. # the port at which the clients will connect
  2. # 客户端访问端口
  3. clientPort=2181
  4. # 集群配置1,2,3服务id;node03(hostname或者ip):2182(集群间通信端口):2183(选举通讯端口)
  5. ## Metrics Providers
  6. server.1=node03:2182:2183
  7. server.2=node04:2182:2183
  8. server.3=node05:2182:2183

配置服务id

进入zoo.cfg中dataDir配

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/711749
推荐阅读
相关标签
  

闽ICP备14008679号