final Path path = new Path(mLayout); final FileSystem fs = fileSystemSpecified(path) ? path.getFileSystem(getConf()) : FileSystem.getLocal(getConf()); final FSDataInputStream inputStream = fs.open(path); final TableLayoutDesc tableLayout = FijiTableLayout.readTableLayoutDescFromJSON(inputStream); final FileSystem splitKeyPathFs = fileSystemSpecified(splitKeyFilePath) ? splitKeyFilePath.getFileSystem(getConf()) : FileSystem.getLocal(getConf());