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);