Package org.apache.hadoop.dfs.DataNode

Examples of org.apache.hadoop.dfs.DataNode.BlockSender


    throttler.setBandwidth(Math.min(bw, MAX_SCAN_RATE));
  }
 
  private void verifyBlock(Block block) {
   
    BlockSender blockSender = null;

    /* In case of failure, attempt to read second time to reduce
     * transient errors. How do we flush block data from kernel
     * buffers before the second read?
     */
    for (int i=0; i<2; i++) {
      boolean second = (i > 0);
     
      try {
        adjustThrottler();
       
        blockSender = datanode.new BlockSender(block, 0, -1, false,
                                               false, true);

        DataOutputStream out =
                new DataOutputStream(new IOUtils.NullOutputStream());
       
        blockSender.sendBlock(out, throttler);

        LOG.info((second ? "Second " : "") +
                 "Verification succeeded for " + block);
       
        if ( second ) {
View Full Code Here


    throttler.setBandwidth(Math.min(bw, MAX_SCAN_RATE));
  }
 
  private void verifyBlock(Block block) {
   
    BlockSender blockSender = null;

    /* In case of failure, attempt to read second time to reduce
     * transient errors. How do we flush block data from kernel
     * buffers before the second read?
     */
    for (int i=0; i<2; i++) {
      boolean second = (i > 0);
     
      try {
        adjustThrottler();
       
        blockSender = datanode.new BlockSender(block, 0, -1, false,
                                               false, true);

        DataOutputStream out =
                new DataOutputStream(new IOUtils.NullOutputStream());
       
        blockSender.sendBlock(out, null, throttler);

        LOG.info((second ? "Second " : "") +
                 "Verification succeeded for " + block);
       
        if ( second ) {
View Full Code Here

    throttler.setBandwidth(Math.min(bw, MAX_SCAN_RATE));
  }
 
  private void verifyBlock(Block block) {
   
    BlockSender blockSender = null;

    /* In case of failure, attempt to read second time to reduce
     * transient errors. How do we flush block data from kernel
     * buffers before the second read?
     */
    for (int i=0; i<2; i++) {
      boolean second = (i > 0);
     
      try {
        adjustThrottler();
       
        blockSender = datanode.new BlockSender(block, 0, -1, false,
                                               false, true);

        DataOutputStream out =
                new DataOutputStream(new IOUtils.NullOutputStream());
       
        blockSender.sendBlock(out, throttler);

        LOG.info((second ? "Second " : "") +
                 "Verification succeeded for " + block);
       
        if ( second ) {
View Full Code Here

TOP

Related Classes of org.apache.hadoop.dfs.DataNode.BlockSender

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.