集群扩容的流程

1.  在配置文件目录添加dfs.hosts白名单文件,文件中加入包括新增节点在内的所有节点

2. 在hdfs.site.xml中配置白名单文件生效

   <property>

      <name>dfs.hosts</name>

      <value>/export/install/hadoop-2.6.0-cdh5.14.0/etc/hadoop/dfs.hosts</value>

  </property>

3.  配置slaves文件,将新增节点加入

4.  刷新hdfs和yarn

      hdfs dfsadmin -refreshNodes

      yarn rmadmin -refreshNodes

7.  新节点开启相应服务

8. 浏览WEB界面

猜你喜欢

转载自blog.csdn.net/lxpqxl/article/details/102968847