hadoop全分布式集群搭建

准备虚拟机

192.168.126.133 cent1 namenode datanode 192.168.126.130 cent2 namenode datanode secondary 192.168.126.139 vm1 datanode 192.168.126.140 vm2 datanode

export JAVA_HOME=/usr export HADOOP_HOME=/root/hadoop-3.1.3 export PATH=$PATH:$JAVA_HOME/bin:$HADOOP_HOME/bin/

yum install ntpdate ntpdate s2c.time.edu.cn timedatectl set-timezone Asia/Shanghai

export PATH=$PATH:$JAVA_HOME/bin:$HADOOP_HOME/bin:/root/zookeeper/bin