参考博客:点击打开链接
- 重新定义Hadoop的临时存储目录
修改core-site.xml
在家目录新建一个文件夹
[root@localhost:/root]mkdir hadoop_tmp
- 修改core-site.xml
[root@localhost:/soft/hadoop2.7/etc/hadoop]cat core-site.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/root/hadoop_tmp</value>
</property>
</configuration>
- 格式化namenode
- start-all.sh