distcp没有执行

时间:2019-02-27 10:09:58

标签: hadoop hdfs distcp s3distcp

我正在尝试使用distcp命令将数据从一个hdfs群集复制到另一个群集。以下是我提交的命令

hadoop distcp hdfs:// sourcenamenodehostname:50070 / var / lib / hadoop-hdfs / distcptest.txt hdfs:// destinationnamenodehostname:50070 / var / lib / hadoop-hdfs

在提交此消息时出现错误消息。请仔细阅读错误消息,并指导我采取正确的方法。


19/02/27 04:28:19信息工具.OptionsParser:parseChunkSize:blocksperchunk false 19/02/27 04:28:20错误工具。DistCp:无效的参数: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException):状态待机中不支持操作类别READ。前往https://s.apache.org/sbnn-error         在org.apache.hadoop.hdfs.server.namenode.ha.StandbyState.checkOperation(StandbyState.java:88)         在org.apache.hadoop.hdfs.server.namenode.NameNode $ NameNodeHAContext.checkOperation(NameNode.java:1835)         在org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkOperation(FSNamesystem.java:1515)         在org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(FSNamesystem.java:4448)         在org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(NameNodeRpcServer.java:912)         在org.apache.hadoop.hdfs.server.namenode.AuthorizationProviderProxyClientProtocol.getFileInfo(AuthorizationProviderProxyClientProtocol.java:533)         在org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideTranslatorPB.java:862)         在org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos $ ClientNamenodeProtocol $ 2.callBlockingMethod(ClientNamenodeProtocolProtos.java)         在org.apache.hadoop.ipc.ProtobufRpcEngine $ Server $ ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:617)         在org.apache.hadoop.ipc.RPC $ Server.call(RPC.java:1073)         在org.apache.hadoop.ipc.Server $ Handler $ 1.run(Server.java:2281)         在org.apache.hadoop.ipc.Server $ Handler $ 1.run(Server.java:2277)         在java.security.AccessController.doPrivileged(本机方法)         在javax.security.auth.Subject.doAs(Subject.java:422)         在org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1924)         在org.apache.hadoop.ipc.Server $ Handler.run(Server.java:2275)

    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.$Proxy10.getFileInfo(Unknown Source)
    at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:788)
    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:258)
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:104)
    at com.sun.proxy.$Proxy11.getFileInfo(Unknown Source)
    at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:2168)
    at org.apache.hadoop.hdfs.DistributedFileSystem$20.doCall(DistributedFileSystem.java:1266)
    at org.apache.hadoop.hdfs.DistributedFileSystem$20.doCall(DistributedFileSystem.java:1262)
    at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
    at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1262)
    at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1418)
    at org.apache.hadoop.tools.DistCp.setTargetPathExists(DistCp.java:208)
    at org.apache.hadoop.tools.DistCp.run(DistCp.java:133)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    at org.apache.hadoop.tools.DistCp.main(DistCp.java:493)

无效的参数:状态备用中不支持操作类别READ。前往https://s.apache.org/sbnn-error         在org.apache.hadoop.hdfs.server.namenode.ha.StandbyState.checkOperation(StandbyState.java:88)         在org.apache.hadoop.hdfs.server.namenode.NameNode $ NameNodeHAContext.checkOperation(NameNode.java:1835)         在org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkOperation(FSNamesystem.java:1515)         在org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(FSNamesystem.java:4448)         在org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(NameNodeRpcServer.java:912)         在org.apache.hadoop.hdfs.server.namenode.AuthorizationProviderProxyClientProtocol.getFileInfo(AuthorizationProviderProxyClientProtocol.java:533)         在org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideTranslatorPB.java:862)         在org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos $ ClientNamenodeProtocol $ 2.callBlockingMethod(ClientNamenodeProtocolProtos.java)         在org.apache.hadoop.ipc.ProtobufRpcEngine $ Server $ ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:617)         在org.apache.hadoop.ipc.RPC $ Server.call(RPC.java:1073)         在org.apache.hadoop.ipc.Server $ Handler $ 1.run(Server.java:2281)         在org.apache.hadoop.ipc.Server $ Handler $ 1.run(Server.java:2277)         在java.security.AccessController.doPrivileged(本机方法)         在javax.security.auth.Subject.doAs(Subject.java:422)         在org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1924)         在org.apache.hadoop.ipc.Server $ Handler.run(Server.java:2275)

1 个答案:

答案 0 :(得分:0)

在我看来,namenode(源)之一不正常,并且不接受入站连接来修改状态或新写入。看到这个-

Invalid arguments: Operation category READ is not supported in state standby.