第一天,配置hadoop,伪分布式,出现错误
按照教程:输入
bin/hadoop fs -get output output
结果出现如下错误:
ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s).
cat logs/hadoop-[用户名]-namenode-[机器名].log
2012-03-13 20:12:57,764 ERROR org.apache.hadoop.hdfs.server.namenode.FSNamesystem: FSNamesystem initialization failed.
org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /tmp/hadoop-somo/dfs/name is in an inconsistent state: storage directory does not exist or is not accessible.
at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:288)
at org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirectory.java:97)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesystem.java:386)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:360)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:276)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:496)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1279)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1288)
上面错误显示,文件状态不一致,存储目录或者不可访问,
创建目录权限可写,然后执行如下语句
bin/hadoop namenode -fromat
仍然结果不对;明天期待解决
第二天解决的(下一遍文章摘要)
2012-03-13 20:12:57,764 ERROR org.apache.hadoop.hdfs.server.namenode.FSNamesystem: FSNamesystem initialization failed.
原因是没有fomat namenode 执行如下命令
- bin/hadoop namenode -format
在这之前需要检查:是否有hadoop进程没有关闭
检查是否有hadoop运行
运行结果
输入
分享到:
相关推荐
NULL 博文链接:https://ouyida3.iteye.com/blog/1144326
在Hadoop中,客户端(Client)负责提交任务、读写数据,而服务器端则包括NameNode、DataNode和TaskTracker等组件,它们处理客户端请求,管理数据存储和任务调度。 二、HDFS通信 1. 客户端与NameNode交互: 当...
分享一个我大晚上提交Hadoop作业到Yarn上因为一个小小小小错误解决了一晚上的问题! 报错:Exception in thread “main” java.net.ConnectException: Call From hdp-1/192.168.234.129 to hdp-1:8020 failed on ...
自己搭集群用的 centos7 minimal 问题一 防火墙 一开始没装vmtools 手动...INFO ipc.Client: Retrying connect to server: linden10004/192.168.174.104:43012. Already tried 0 time(s); retry policy is RetryUpToMa
2019-03-10 20:22:41,388 INFO ipc.Client: Retrying connect to server: c1/10.0.0.101:8020. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=1, sleepTime=1000 ...