下载3.1.2的hadoop tar,解压后配置
进入配置目录
配置hadoop-evn.sh的JAVA_HOME
配置core-site.sh
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/Users/ebana/tmp/hadoop</value>
</property>
</configuration>
配置hdfs-site.sh
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>