hadoop namenode启动失败

参考博客:点击打开链接

  • 重新定义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

欢迎关注我的公众号:小秋的博客 CSDN博客:https://blog.csdn.net/xiaoqiu_cr github:https://github.com/crr121 联系邮箱:rongchen633@gmail.com 有什么问题可以给我留言噢~
原文地址:https://www.cnblogs.com/flyingcr/p/10327046.html