ssh-keygen -t rsa
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
wget http://archive.cloudera.com/cdh5/cdh/5/hadoop-2.6.0-cdh5.7.0.tar.gz
vim $HADOOP_HOME/etc/hadoop/hadoop-env.sh
export JAVA_HOME=/app/jre1.8.0_131
(此步骤不可省略)
vim $HADOOP_HOME/etc/hadoop/core-site.xml
<configuration>
<property>
<name>hadoop.tmp.dirname>
<value>~/Documents/tmpvalue>
<description>A base for other temporary directories.description>
property>
<property>
<name>fs.default.namename>
<value>hdfs://whoami.local:9000value>
property>
configuration>
vim $HADOOP_HOME/etc/hadoop/hdfs-site.xml
<configuration>
<property>
<name>dfs.replicationname>
<value>1value>
property>
configuration>
cd $HADOOP_HOME/bin/
./hdfs namenode -format
cd ../sbin
./start-dfs.sh
http://127.0.0.1:50070
Yarn 配置
cd $HADOOP_HOME/etc/hadoop
cp mapred-site.xml.template mapred-site.xml
vim mapred-site.xml
<configuration>
<property>
<name>mapreduce.framework.namename>
<value>yarnvalue>
property>
configuration>
vim yarn-site.xml
<configuration>
<property>
<name>yarn.nodemanager.aux-servicesname>
<value>mapreduce_shufflevalue>
property>
configuration>
$HADOOP_HOME/sbin/start-yarn.sh