Examples of writeVersionAndOpCode()


Examples of org.apache.hadoop.hdfs.protocol.WriteBlockHeader.writeVersionAndOpCode()

              versionAndOpcode.getDataTransferVersion(), namespaceid,
              block.getBlockId(), block.getGenerationStamp(), pipelineSize,
              isRecovery, hasSrcDataNode, srcDataNode, targets.length - 1, targets,
              client);
          headerToSend.getWritePipelineInfo().setWriteOptions(options);
          headerToSend.writeVersionAndOpCode(mirrorOut);
          headerToSend.write(mirrorOut);
          blockReceiver.writeChecksumHeader(mirrorOut);
          mirrorOut.flush();

          // read connect ack (only for clients, not for replication req)
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.WriteBlockHeader.writeVersionAndOpCode()

        WriteBlockHeader header = new WriteBlockHeader(
            dataTransferVersion, dstNamespaceId,
            destinationBlock.getBlockId(),
            destinationBlock.getGenerationStamp(), 0, false, true, srcNode,
            targets.length - 1, targets, "");
        header.writeVersionAndOpCode(out);
        header.write(out);

        // send data & checksum
        DataTransferThrottler trottler = null;
        if (dataTransferMaxRate > 0) {
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.WriteBlockHeader.writeVersionAndOpCode()

              pipelineDepth, recoveryFlag, false, null, pipelineDepth - 1,
              nodes, client);
          header.getWritePipelineInfo().setWriteOptions(options);
          header.getWritePipelineInfo().getWriteOptions()
              .setIfProfileEnabled(profileData != null);
          header.writeVersionAndOpCode(out);
          header.write(out);
        } else {
          AppendBlockHeader header = new AppendBlockHeader(version,
              dfsClient.namespaceId, block.getBlockId(), block.getNumBytes(),
              block.getGenerationStamp(),
View Full Code Here

Examples of org.apache.hadoop.hdfs.protocol.WriteBlockHeader.writeVersionAndOpCode()

          AppendBlockHeader header = new AppendBlockHeader(version,
              dfsClient.namespaceId, block.getBlockId(), block.getNumBytes(),
              block.getGenerationStamp(),
              pipelineDepth, false, null, pipelineDepth - 1,
              nodes, client);
          header.writeVersionAndOpCode(out);
          header.write(out);
        }
        checksum.writeHeader(out);
        out.flush();
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.