17 package uk.ac.cam.eng.extraction.hadoop.util;
19 import java.io.IOException;
21 import org.apache.hadoop.conf.Configuration;
22 import org.apache.hadoop.fs.FileSystem;
23 import org.apache.hadoop.fs.Path;
24 import org.apache.hadoop.hbase.io.hfile.CacheConfig;
25 import org.apache.hadoop.hbase.io.hfile.HFile;
38 public static void main(String[] args)
throws IOException {
39 if (args.length != 1) {
40 System.err.println(
"Args: <HFile to be printed>");
43 Configuration conf =
new Configuration();
44 CacheConfig cacheConf =
new CacheConfig(conf);
45 HFile.Reader hfReader = HFile.createReader(FileSystem.get(conf),
46 new Path(args[0]), cacheConf);
49 System.out.println(entry);