core-site.xml:
<configuration>
<property>
<name>fs.defaultFS </name>
<value>hdfs://hadoop00:8020</value>
</property>
</configuration>
hdfs-site.xml:
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/app/temple</value>
</property>
</configuration>
slave:
主機名
首次使用需要格式化!! hdfs namenode -format
轉載于:https://www.cnblogs.com/TheGreatDead/p/11137847.html