FSNamesystem: Not able to place enough replicas, still in need of 1
来源:互联网 发布:海纳百川软件安卓版 编辑:程序博客网 时间:2024/06/08 16:23
2013-07-04 01:21:50,677 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Not able to place enough replicas, still in need of 1
2013-07-04 01:21:50,677 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:root cause:java.io.IOException: File /share/mapreduce-streaming/core-3.1.1.jar could only be replicated to 0 nodes, instead of 1
2013-07-04 01:21:50,691 INFO org.apache.hadoop.ipc.Server: IPC Server handler 3 on 9000, call addBlock(/share/mapreduce-streaming/core-3.1.1.jar, DFSClient_NONMAPREDUCE_1542993451_1, null) from 127.0.0.1:33308: error: java.io.IOException: File /share/mapreduce-streaming/core-3.1.1.jar could only be replicated to 0 nodes, instead of 1
java.io.IOException: File /share/mapreduce-streaming/core-3.1.1.jar could only be replicated to 0 nodes, instead of 1
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1639)
at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:736)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
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:578)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1393)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1389)
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:1149)
2013-07-04 01:21:50,677 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:root cause:java.io.IOException: File /share/mapreduce-streaming/core-3.1.1.jar could only be replicated to 0 nodes, instead of 1
2013-07-04 01:21:50,691 INFO org.apache.hadoop.ipc.Server: IPC Server handler 3 on 9000, call addBlock(/share/mapreduce-streaming/core-3.1.1.jar, DFSClient_NONMAPREDUCE_1542993451_1, null) from 127.0.0.1:33308: error: java.io.IOException: File /share/mapreduce-streaming/core-3.1.1.jar could only be replicated to 0 nodes, instead of 1
java.io.IOException: File /share/mapreduce-streaming/core-3.1.1.jar could only be replicated to 0 nodes, instead of 1
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1639)
at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:736)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
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:578)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1393)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1389)
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:1149)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1387)
hadoop向dfs系统上put文件的时候,报这个错误,试过几次namenode的format,问题一直都存在,放小的文件put是没有问题了,一旦文件多了或者大的时候就出现了这个问题了,后来用df命令查看linux的空间大小,如下图:
发现根目录下面已经没有空间了,原来是空间不足的原因。空间最大的是在/home下面。
解决方法是:更改dfs的hadoop.tmp.dir路径。在core-site.xml文件里面修改的信息如下:
<property>
<name>hadoop.tmp.dir</name>
<value>/home/dfs</value>
<description>A base for other temporary directories.</description>
</property>
执行stop-all.sh关闭hadoop,
格式化namenode :hadoop namenode -format
执行start-all.sh重新启动hadoop,重新put,没有问题了。
- FSNamesystem: Not able to place enough replicas, still in need of 1
- Failed to place enough replicas, still in need of 1 to reach 3. For more information。。。。
- Failed to place enough replicas
- Cassandra HUnavailableException: : May not be enough replicas present to handle consistency leve错误处理
- Not able to wire events in user control
- IOS 推送警告but you still need to add "remote-notification" to the list of ....
- iOS通知 you still need to add "remote-notification" to the list of your supported UIBackgroundModes
- Not able to reset SmartRF04DD
- 极光推送编译遇到you still need to add "remote-notification" to the list of your supported UIBackgroundModes
- iOS推送警告but you still need to add "remote-notification" to the list of your supported UIBackgroundMod
- I still believe in a place called Hope!
- OUI-67076 : OracleHomeInventory was not able to create a lock file" in Unix
- ValueError: not enough values to unpack (expected 2, got 1)
- How-to: resolve spark streaming "Not enough space to cache input-0-* in memory! "
- [patch] fix WPA: Not enough entropy in random pool to proceed - reject first 4-way handshake
- kotlin findviewbyid报错: type inference failed: Not enough information to infer parameter T in...
- Kotlin-Not enough information to infer parameter T in fun<T:View> findViewById(id: Int): T!
- Thinking In java is not enough
- erlang 你不知道的事
- 关于枚举的一两件私房事
- 验证码识别
- UVA 11997 K Smallest Sums
- mysql创建、授权、删除用户sql
- FSNamesystem: Not able to place enough replicas, still in need of 1
- Android命令行启动程序正确使用技巧解析
- ListView中Header, Footer无法隐藏(gone)的问题
- 解决The content of element type "web-app" must match "(icon?,display
- 【转载】两分钟彻底让你明白Android Activity生命周期(图文)!
- Emacs 基本用法
- 写一个块设备驱动
- 在UltraEdit中使用正则表达式
- ios Parse推送详解