1.安装centos8
2.配置yum源
3.关闭防火墙
4.安装jdk
rpm -ivh jdk-8u101-linux-x64.rpm
vim /etc/profile
export JAVA_HOME=/usr/java/jdk1.8.0_131
export CLASSPATH=$:CLASSPATH:$JAVA_HOME/lib/
export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile
5.安装hadoop
vim /etc/profile
export HADOOP_HOME=/usr/local/hadoop/hadoop-3.2.2
export PATH=$PATH:$HADOOP_HOME/bin
export PATH=$PATH:$HADOOP_HOME/sbin
source /etc/profile
6.hadoop集群模式
7.查看官方文档
Apache Hadoop 3.3.1 – Hadoop: Setting up a Single Node Cluster.
8.常用命令
start-all.sh --->start-dfs.sh + start-yarn.sh
start-dfs.sh ---->hadoop-daemon.sh start namenode + hadoop-daemons.sh start datanode
start-yarn.sh ----->yarn-daemon.sh start resourcemanager + yarn-daemons.sh start nodemanager