Namenode not getting started

前端 未结 21 2105
暗喜
暗喜 2020-11-28 19:32

I was using Hadoop in a pseudo-distributed mode and everything was working fine. But then I had to restart my computer because of some reason. And now when I am trying to st

21条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 20:04

    I got the solution just share with you that will work who got the errors:
    
    1. First check the /home/hadoop/etc/hadoop path, hdfs-site.xml and
    
     check the path of namenode and datanode 
    
    
      dfs.name.dir
        file:///home/hadoop/hadoopdata/hdfs/namenode
    
    
    
      dfs.data.dir
        file:///home/hadoop/hadoopdata/hdfs/datanode
    
    
    2.Check the permission,group and user of namenode and datanode of the particular path(/home/hadoop/hadoopdata/hdfs/datanode), and check if there are any problems in all of them and if there are any mismatch then correct it. ex .chown -R hadoop:hadoop in_use.lock, change user and group
    
    chmod -R 755  for change the permission
    

提交回复
热议问题