在hdfs上创建文件时出错“只能复制到0个节点,而不是cloudera上的minreplication(=1)”

jvlzgdj9  于 2021-07-15  发布在  Hadoop
关注(0)|答案(0)|浏览(251)

当我试图用talend big data在hdfs(cloudera虚拟盒)中创建文件时,出现了一个错误。我已经尝试重新启动namenode并使用cloudera manager为datanodes配置存储平衡。
请注意,我可以创建文件夹,但不能创建文件。
但什么都没用,请帮忙:(
这是我的错误:

Starting job JOB_LOAD_FIRST_LINE at 20:29 07/02/2021.
[statistics] connecting to socket on port 3935
[statistics] connected
[ERROR] 20:29:21 org.apache.hadoop.util.Shell- Failed to locate the winutils binary in the hadoop binary path
java.io.IOException: Could not locate executable C:\hadoop\bin\bin\winutils.exe in the Hadoop binaries.
    at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:407) ~[hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:422) [hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.util.Shell.<clinit>(Shell.java:415) [hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:79) [hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.security.Groups.parseStaticMapping(Groups.java:168) [hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.security.Groups.<init>(Groups.java:132) [hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.security.Groups.<init>(Groups.java:100) [hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:435) [hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:337) [hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.security.UserGroupInformation.setConfiguration(UserGroupInformation.java:374) [hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at local_project.job_load_first_line_0_1.JOB_LOAD_FIRST_LINE.tFixedFlowInput_1Process(JOB_LOAD_FIRST_LINE.java:485) [classes/:?]
    at local_project.job_load_first_line_0_1.JOB_LOAD_FIRST_LINE.runJobInTOS(JOB_LOAD_FIRST_LINE.java:910) [classes/:?]
    at local_project.job_load_first_line_0_1.JOB_LOAD_FIRST_LINE.main(JOB_LOAD_FIRST_LINE.java:744) [classes/:?]
[WARN ] 20:29:46 org.apache.hadoop.hdfs.DFSClient- Abandoning BP-989008105-127.0.0.1-1433846136903:blk_1073743298_2487
[WARN ] 20:29:46 org.apache.hadoop.hdfs.DFSClient- Excluding datanode DatanodeInfoWithStorage[10.0.2.15:50010,DS-dcf35ebd-2f86-4fe6-8001-67f8db5e89d4,DISK]
[WARN ] 20:29:46 org.apache.hadoop.hdfs.DFSClient- DataStreamer Exception
org.apache.hadoop.ipc.RemoteException: File /user/cloudera/formation/First_Job/.init could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.
    at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.chooseTarget4NewBlock(BlockManager.java:1541)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:3286)
    at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:667)
    at org.apache.hadoop.hdfs.server.namenode.AuthorizationProviderProxyClientProtocol.addBlock(AuthorizationProviderProxyClientProtocol.java:212)
    at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:483)
    at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:619)
    at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1060)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2044)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2040)
    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:1671)
    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2038)

    at org.apache.hadoop.ipc.Client.call(Client.java:1504) ~[hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.ipc.Client.call(Client.java:1441) ~[hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:230) ~[hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at com.sun.proxy.$Proxy26.addBlock(Unknown Source) ~[?:?]
    at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.addBlock(ClientNamenodeProtocolTranslatorPB.java:423) ~[hadoop-hdfs-2.6.0-cdh5.13.0.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_271]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_271]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_271]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_271]
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:260) ~[hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:104) ~[hadoop-common-2.6.0-cdh5.13.0.jar:?]
    at com.sun.proxy.$Proxy27.addBlock(Unknown Source) ~[?:?]
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.locateFollowingBlock(DFSOutputStream.java:1829) ~[hadoop-hdfs-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1625) ~[hadoop-hdfs-2.6.0-cdh5.13.0.jar:?]
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:788) [hadoop-hdfs-2.6.0-cdh5.13.0.jar:?]
Exception in component tHDFSOutput_2 (JOB_LOAD_FIRST_LINE)
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /user/cloudera/formation/First_Job/.init could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.
    at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.chooseTarget4NewBlock(BlockManager.java:1541)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:3286)
    at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:667)
    at org.apache.hadoop.hdfs.server.namenode.AuthorizationProviderProxyClientProtocol.addBlock(AuthorizationProviderProxyClientProtocol.java:212)
    at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:483)
    at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:619)
    at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1060)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2044)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2040)
    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:1671)
    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2038)

    at org.apache.hadoop.ipc.Client.call(Client.java:1504)
    at org.apache.hadoop.ipc.Client.call(Client.java:1441)
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:230)
    at com.sun.proxy.$Proxy26.addBlock(Unknown Source)
    at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.addBlock(ClientNamenodeProtocolTranslatorPB.java:423)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:260)
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:104)
    at com.sun.proxy.$Proxy27.addBlock(Unknown Source)
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.locateFollowingBlock(DFSOutputStream.java:1829)
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1625)
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:788)
[statistics] disconnected

Job JOB_LOAD_FIRST_LINE ended at 20:29 07/02/2021. [exit code  = 1]

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题