Examples of copyBlock()


Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

          LOG.debug("Fast Copy : Copying block " + src.getBlockName() + " to "
              + dst.getBlockName() + " on " + dstDn.getHostName());
          // This is a blocking call that does not return until the block is
          // successfully copied on the Datanode.
          if (supportFederation) {
            cdp.copyBlock(srcNamespaceId, src,
                dstNamespaceId, dst, dstDn,
                false);
          } else {
            cdp.copyBlock(src, dst, dstDn,
                false);
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

          if (supportFederation) {
            cdp.copyBlock(srcNamespaceId, src,
                dstNamespaceId, dst, dstDn,
                false);
          } else {
            cdp.copyBlock(src, dst, dstDn,
                false);
          }
        } catch (Exception e) {
          String errMsg = "Fast Copy : Failed for Copying block "
            + src.getBlockName() + " to " + dst.getBlockName() + " on "
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

          LOG.debug("Fast Copy : Copying block " + src.getBlockName() + " to "
              + dst.getBlockName() + " on " + dstDn.getHostName());
          // This is a blocking call that does not return until the block is
          // successfully copied on the Datanode.
          if (supportFederation) {
            cdp.copyBlock(srcNamespaceId, src,
                dstNamespaceId, dst, dstDn,
                false);
          } else {
            cdp.copyBlock(src, dst, dstDn,
                false);
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

          if (supportFederation) {
            cdp.copyBlock(srcNamespaceId, src,
                dstNamespaceId, dst, dstDn,
                false);
          } else {
            cdp.copyBlock(src, dst, dstDn,
                false);
          }
        } catch (Exception e) {
          String errMsg = "Fast Copy : Failed for Copying block "
            + src.getBlockName() + " to " + dst.getBlockName() + " on "
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

              goodBlock.getBlock().getBlockName() + " from " + srcdn.getName() +
              " to block " + badBlock.getBlock().getBlockName() +
              " on " + target.getName();
        LOG.info(msg);
        ClientDatanodeProtocol datanode = createClientDatanodeProtocolProxy(srcdn, conf);
        datanode.copyBlock(goodBlock.getBlock(), badBlock.getBlock(), target);
        RPC.stopProxy(datanode);
        HighTideNode.getMetrics().fixSuccessfullyStarted.inc();
      } catch (Throwable e) {
        HighTideNode.getMetrics().fixFailedDatanodeError.inc();
        LOG.error(StringUtils.stringifyException(e) + msg + ". Failed to contact datanode.");
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

           new DatanodeID(target.name, "", -1, getPort(target.name)));

      // make RPC to datanode
      try {
        ClientDatanodeProtocol remote = getOrCreate(datanode.name);
        remote.copyBlock(srcNamespaceId.id, sblk,
                         dstNamespaceId.id, dblk,
                         targs, asynchronous);
      } catch (IOException e) {
        String msg = "Error copyBlock datanode " + datanode.name +
                     " srcnamespaceid " + srcNamespaceId.id +
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

          LOG.debug("Fast Copy : Copying block " + src.getBlockName() + " to "
              + dst.getBlockName() + " on " + dstDn.getHostName());
          // This is a blocking call that does not return until the block is
          // successfully copied on the Datanode.
          if (supportFederation) {
            cdp.copyBlock(srcNamespaceId, src,
                dstNamespaceId, dst, dstDn,
                false);
          } else {
            cdp.copyBlock(src, dst, dstDn,
                false);
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

          if (supportFederation) {
            cdp.copyBlock(srcNamespaceId, src,
                dstNamespaceId, dst, dstDn,
                false);
          } else {
            cdp.copyBlock(src, dst, dstDn,
                false);
          }
        } catch (Exception e) {
          String errMsg = "Fast Copy : Failed for Copying block "
            + src.getBlockName() + " to " + dst.getBlockName() + " on "
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

              goodBlock.getBlock().getBlockName() + " from " + srcdn.getName() +
              " to block " + badBlock.getBlock().getBlockName() +
              " on " + target.getName();
        LOG.info(msg);
        ClientDatanodeProtocol datanode = createClientDatanodeProtocolProxy(srcdn, conf);
        datanode.copyBlock(goodBlock.getBlock(), badBlock.getBlock(), target);
        RPC.stopProxy(datanode);
        HighTideNode.getMetrics().fixSuccessfullyStarted.inc();
      } catch (Throwable e) {
        HighTideNode.getMetrics().fixFailedDatanodeError.inc();
        LOG.error(StringUtils.stringifyException(e) + msg + ". Failed to contact datanode.");
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol.copyBlock()

    try {
      Thread.sleep(5000);
      // Submit another transfer to same location, should receive
      // BlockAlreadyExistsException.
      cdp2.copyBlock(srcNamespaceId, srcBlock, dstNamespaceId, dstBlock, srcLocs[2], false);
    } catch (RemoteException re) {
      // pass.
      return;
    } finally {
      // Shutdown RPC connections.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.