win7下搭建hadoop环境,出现ERROR namenode.NameNode: Failed to start namenode.

参考文章:

https://blog.csdn.net/qq_35535690/article/details/81976032

hadoop环境已配置好,在使用hadoop namenode -format 命令启动运行的时候,报错

win7下搭建hadoop环境,出现ERROR namenode.NameNode: Failed to start namenode._第1张图片 

win7下搭建hadoop环境,出现ERROR namenode.NameNode: Failed to start namenode._第2张图片

将hdfs-site.xml文件中的namenode和datanode的路径改为


 
        dfs.replication
        1
    
    
        dfs.namenode.name.dir
        /Hadoop-2.7.7/hadoop-2.7.7/data/namenode
    
    
        dfs.datanode.data.dir
        /Hadoop-2.7.7/hadoop-2.7.7/data/datanode
    

使用命令 hadoop namenode -format    重新运行即可。

win7下搭建hadoop环境,出现ERROR namenode.NameNode: Failed to start namenode._第3张图片

 

win7下搭建hadoop环境,出现ERROR namenode.NameNode: Failed to start namenode._第4张图片

你可能感兴趣的:(Hadoop)