Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2139 Fast copy for HDFS.
  3. HDFS-16757

Add a new method copyBlockCrossNamespace to DataNode

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Add a new method copyBlockCrossNamespace in DataTransferProtocol at the DataNode Side.

      This method will copy a source block from one namespace to a target block from a different namespace. If the target DN is the same with the current DN, this method will copy the block via HardLink. If the target DN is different with the current DN, this method will copy the block via TransferBlock.

      This method will contains some parameters:

      • ExtendedBlock sourceBlock
      • Token<BlockTokenIdentifier> sourceBlockToken
      • ExtendedBlock targetBlock
      • Token<BlockTokenIdentifier> targetBlockToken
      • DatanodeInfo targetDN

      Attachments

        Activity

          People

            liuguanghua liuguanghua
            xuzq_zander ZanderXu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: