DomainStore store = new DomainStore(fs, args.inputDirHdfs);
String versionPath;
if (args.version == null) {
versionPath = store.mostRecentVersionPath();
} else {
versionPath = store.versionPath(args.version);
}
DomainSpec spec = store.getSpec();
List<InputSplit> ret = new ArrayList<InputSplit>();
for (int i = 0; i < spec.getNumShards(); i++) {
String shardPath = versionPath + "/" + i;