Package org.apache.hadoop.hdfs.protocol

Examples of org.apache.hadoop.hdfs.protocol.BlockCrcHeader


            LOG.debug("read block CRC from" + datanodes[j].getName() + ": "
                + DataTransferProtocol.OP_BLOCK_CRC + ", block=" + block);
          }
         
          /* Write the header */
          BlockCrcHeader blockCrcHeader = new BlockCrcHeader(
              dataTransferVersion, namespaceId, block.getBlockId(),
              block.getGenerationStamp());
          blockCrcHeader.writeVersionAndOpCode(out);
          blockCrcHeader.write(out);
          out.flush();

          final short reply = in.readShort();
          if (reply != DataTransferProtocol.OP_STATUS_SUCCESS) {
            throw new IOException("Bad response " + reply + " for block "
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.protocol.BlockCrcHeader

Copyright © 2018 www.massapicom. 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.