// Make TextInputFormat recognize .ssf via config
JobConf job = new JobConf();
job.set("fs.default.name", "file:///");
// System.out.println("FS DEFAULT: " + job.get("fs.default.name"));
job.set("io.compression.codecs", SimpleSeekableFormatCodec.class.getName());
TextInputFormat textInputFormat = new TextInputFormat();
textInputFormat.configure(job);
// Open the file using TextInputFormat
TextInputFormat.addInputPath(job, path);
InputSplit[] splits = textInputFormat.getSplits(job, 1);
Assert.assertEquals(1, splits.length);
RecordReader<LongWritable, Text> recordReader = textInputFormat.getRecordReader(splits[0],
job, Reporter.NULL);
// Verify the data
LongWritable key = recordReader.createKey();
Text value = recordReader.createValue();