1. /etc/profile JAVA_HOME, HADOOP_HOME
export JAVA_HOME=
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:$PATH
export HADOOP_HOME=
export PATH=$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH
2,hadoop-env.sh JAVA_HOME
3,hdfs namenode -format
#start_hadoop.sh
#!/bin/bash
start-dfs.sh
start-yarn.sh
mr-jobhistory-daemon.sh start historyserver
#stop_hadoop.sh
#!/bin/bash
mr-jobhistory-daemon.sh stop historyserver
stop-yarn.sh
stop-dfs.sh
时间: 2024-11-06 14:45:11