问题(2)

错误信息:

    

Failed with exception java.io.IOException: File /tmp/hive-root/hive_2013-10-15_21-00-08_907_3822360466099841590/-ext-10000/cite75_99.txt could only be replicated to 0 nodes, instead of 1

at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1558)

at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:696)

at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

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:415)

at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)

at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)



解决方案:

        

    1、  修改hadoop中的配置文件:hdfs-site.xml

    1. 增加一项配置

    

    2、  修改hadoop中的配置文件:mapred-site.xml

    1. 增加一项配置


                                                                                                                            Name:Xr

                                                                                                                            Date:2014-05-31 23:11

你可能感兴趣的:(问题(2))