首次部署hadoop ,namenode 格式化失败 storage directory does not exist or is not accessible

在2018年12月尝试首次部署Hadoop时遇到了问题,namenode格式化失败,报错为'storage directory does not exist or is not accessible'。错误出现在尝试加载fsimage时,/usr/local/hadoop/tmp/dfs/name存储目录不存在或不可访问。解决方案包括检查配置文件和确保SSH无密码登录设置正确。
摘要由CSDN通过智能技术生成

2018-12-07 16:49:44,171 INFO org.apache.hadoop.util.GSet: capacity      = 2^15 = 32768 entries
2018-12-07 16:49:44,174 WARN org.apache.hadoop.hdfs.server.common.Storage: Storage directory /usr/local/hadoop/tmp/dfs/name does not exist
2018-12-07 16:49:44,175 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Encountered exception loading fsimage
org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /usr/local/hadoop/tmp/dfs/name is in an inconsistent state: storage directory does not exist or is not accessible.
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:322)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:210)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1012)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:691)
    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值