home/hadoop/tmp/mapred/system/jobtracker.info could only be replicated to 0 nodes, instead of 1问题解决
来源:互联网 发布:2016电脑安全软件排行 编辑:程序博客网 时间:2024/05/22 00:47
本人Hadoop菜鸟。这个问题是在master节点运行hadoop dfs -put /home/hadoop/test_data/word /input出现的,在master节点查了好久也在网上查了很多资料都没有解决。
后来换位思考了一下,是不是应该在slave1节点找找原因呢,通过核查slave节点的日志发现不断出现以下信息:
2017-11-07 18:35:25,092 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.115:9000. Already tried 0 time(s).
2017-11-07 18:35:26,095 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.115:9000. Already tried 1 time(s).
2017-11-07 18:35:27,099 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.115:9000. Already tried 2 time(s).
2017-11-07 18:35:28,102 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.115:9000. Already tried 3 time(s).
2017-11-07 18:35:29,105 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.115:9000. Already tried 4 time(s).
2017-11-07 18:35:30,108 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.1.115:9000. Already tried 5 time(s).
在网上找了资料,得知该问题是在etc/hosts中的配置是否有127.0.1.1 造成的(原因:127.0.1.1是debian中的本地回环。这个造成了hadoop解析出现问题。这个设置应该是在做伪分布式的hadoop集群的时候,留下来的)。如果有把其屏蔽或者删除,重启各节点即可。在此感谢http://www.cnblogs.com/dyllove98/archive/2013/06/20/3147024.html的朋友。
修改前:
[root@master hadoop-0.20.2-cdh3u6]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost master
::1 localhost6.localdomain6 localhost6
#192.168.117.128 bogon
192.168.1.115 master
192.168.1.43 slave1
修改后:
[root@master hadoop-0.20.2-cdh3u6]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost master
::1 localhost6.localdomain6 localhost6
#192.168.117.128 bogon
192.168.1.115 master
192.168.1.43 slave1
最后重启一下各个节点就正常了。
- home/hadoop/tmp/mapred/system/jobtracker.info could only be replicated to 0 nodes, instead of 1问题解决
- hadoop搭建异常 /tmp/hadoop-root/mapred/system/jobtracker.info could only be replicated to 0 nodes, inste
- 安装hadoop错误一则:/tmp/hadoop-grid/mapred/system/jobtracker.info could only be replicated to 0 nodes
- jobtracker.info could only be replicated to 0 nodes, instead of 1
- jobtracker.info could only be replicated to 0 nodes, instead of 1
- java.io.IOException: File /home/hadoop/mapred/system/jobtracker.info could only be replicated to 0 n
- java.io.IOException: File /home/hadoop/mapred/system/jobtracker.info could only be replicated to 0 n
- 我是如何解决jobtracker.info could only be replicated to 0 nodes, instead of 1这个问题的
- Hadoop配置:file could only be replicated to 0 nodes, instead of 1问题解决方法
- java.io.IOException: File /tmp could only be replicated to 0 nodes, instead of 1
- 【甘道夫】info could only be replicated to 0 nodes, instead of 1
- 【甘道夫】info could only be replicated to 0 nodes, instead of 1
- could only be replicated to 0 nodes, instead of 1
- Hadoop报错“could only be replicated to 0 nodes, instead of 1”
- hadoop异常“could only be replicated to 0 nodes, instead of 1” 解决
- Hadoop:File xxx could only be replicated to 0 nodes, instead of 1
- Hadoop报错“could only be replicated to 0 nodes, instead of 1” .
- hadoop could only be replicated to 0 nodes instead of 1 解决方法
- testng源码阅读之三
- Blog18@linux关于ftp的介绍
- 【模板】三分法
- 修改jQuery.validate验证方法和提示信息
- nginx重启配置命令
- home/hadoop/tmp/mapred/system/jobtracker.info could only be replicated to 0 nodes, instead of 1问题解决
- Manifest merger failed with multiple errors, see ?
- stellar.js
- 生成密码
- Java 用VS2010+MyEclipse调试jni出现的错误问题
- 韩信点兵(中国剩余定理)
- Mybatis分页插件PageHelper用法
- Mac OS X 安装和配置 PAServer(JVM),调试Firemonkey程序
- jmeter之ant配置批量执行用例发送邮件