Package org.apache.hadoop.io

Examples of org.apache.hadoop.io.FileChunk


          }
        }

        final FileStatus fStatus = localFS.getFileStatus(outputPath);
        // add to list of final disk outputs.
        onDiskMapOutputs.add(new FileChunk(outputPath, 0, fStatus.getLen(), false));

        LOG.info("Merged " + numMemDiskSegments + " segments, " +
                 inMemToDiskBytes + " bytes to disk to satisfy " +
                 "reduce memory limit");
        inMemToDiskBytes = 0;
View Full Code Here


          writer.close();
        }
      }

      // Note the output of the merge
      closeOnDiskFile(new FileChunk(outputPath, 0, outFileLen, false));
    }
View Full Code Here

        localFS.delete(outputPath, true);
        throw e;
      }

      final long outputLen = localFS.getFileStatus(outputPath).getLen();
      closeOnDiskFile(new FileChunk(outputPath, 0, outputLen, false));

      LOG.info(inputContext.getUniqueIdentifier() +
          " Finished merging " + inputs.size() +
          " map output files on disk of total-size " +
          approxOutputSize + "." +
View Full Code Here

    this.tmpOutputPath = tmpOutputPath;
    this.disk = null;

    if (type == Type.DISK || type == Type.DISK_DIRECT) {
      boolean preserve = (type == Type.DISK_DIRECT); // type disk are temp files.
      this.outputPath = new FileChunk(outputPath, offset, size, preserve);
    } else {
      this.outputPath = null;
    }

  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.io.FileChunk

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.