hadoop could only be replicated to 0 nodes instead of 1 解决方法
来源:互联网 发布:美国10月非农数据 编辑:程序博客网 时间:2024/06/06 05:45
修改了replication后,执行hive语句报错如下:
hive> select count(1) from weblog;Total MapReduce jobs = 1Launching Job 1 out of 1Number of reduce tasks determined at compile time: 1In order to change the average load for a reducer (in bytes): set hive.exec.reducers.bytes.per.reducer=<number>In order to limit the maximum number of reducers: set hive.exec.reducers.max=<number>In order to set a constant number of reducers: set mapred.reduce.tasks=<number>org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /tmp/hive-hadoop/hive_2013-07-04_15-36-07_345_4881871228589151814/-mr-10003/638ea85d-5738-4c1d-9d25-efdee53eb196 could only be replicated to 0 nodes, instead of 1 at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1556) at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:696) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1083) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)
经测试,使用hadoop fs -put 也报同样的错,应该是hdfs的错误。
奇怪的是 -ls -rmr都正常没有问题。
网上搜索了一下,
1. 有说是datanode没有启动的,但我这里不是。所有节点启动正常。
2.有说是开启了iptables,但我这里也不是
[root@Master hadoop]# service iptables status
iptables:未运行防火墙。
3.有说hdfs运行在safe模式下,但我都是-rmr,肯定不是这个问题
4.有篇文章:http://dongyajun.iteye.com/blog/1039836
说是hadoop中isGoodTarget方法对预选的数据节点做出了终审判决,然而除了磁盘空间可利用外,另外需稳定在一定的压力之下,这里的标准是Datanode中XceiverServer所接受的连接数,我们在使用Hadoop时,这个值很容易被忽略,因为这个值不方便被统计到。上段代码说明当前节点的连接数,不得大于集群所有节点平均连接数的两倍。
我想我的原因可能是这个,看了下live datenode可用空间不足10%,删除了几个大的文件,空间空出来了,
再次-put文件,正常;
再次运行hive的那个语句,正常; OK
- hadoop could only be replicated to 0 nodes instead of 1 解决方法
- hadoop文件系统错误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配置:file could only be replicated to 0 nodes, instead of 1问题解决方法
- Hadoop报错“could only be replicated to 0 nodes, instead of 1” .
- Hadoop put 报异常“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执行报错 JobTracer 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伪分布式系统: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异常“could only be replicated to 0 nodes, instead of 1” 解决
- 三 静态结构建模
- nohup命令详解
- 根据存有RGB值的一维数组生成Image
- Spring MVC 学习笔记2——登录
- 四 动态结构建模
- hadoop could only be replicated to 0 nodes instead of 1 解决方法
- uva-11111 Generalized Matrioshkas
- 五 物理模型
- sql查询去除重复项
- 删除Oracle表空间,释放硬盘空间
- ubuntu交叉编译 arm-linux-命令找不到
- 用MODELLER构建好模型后对loop区域进行自动的优化过程
- 一个老板的三个忠告
- 内部类详解