Package org.apache.hadoop.hbase.exceptions

Examples of org.apache.hadoop.hbase.exceptions.CorruptHFileException


      throws IOException {
    FixedFileTrailer trailer = null;
    try {
      trailer = FixedFileTrailer.readFromStream(fsdis, size);
    } catch (IllegalArgumentException iae) {
      throw new CorruptHFileException("Problem reading HFile Trailer from file " + path, iae);
    }
    switch (trailer.getMajorVersion()) {
    case 2:
      return new HFileReaderV2(path, trailer, fsdis, fsdisNoFsChecksum,
          size, closeIStream,
          cacheConf, preferredEncodingInCache, hfs);
    default:
      throw new CorruptHFileException("Invalid HFile version " + trailer.getMajorVersion());
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.exceptions.CorruptHFileException

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.