if (options.localFS) {
Path localFSRootPath = new Path(System.getProperty("test.build.data",
"build/test/data/work-dir"));
fileSys = localFSRootPath.getFileSystem(conf);
rootPath = new Path(localFSRootPath, options.rootPath);
mr = new MiniMRCluster(options.taskTrackers, "file:///", 3);
} else {
dfs = new MiniDFSCluster(conf, options.dataNodes, true, null);
fileSys = dfs.getFileSystem();
rootPath = new Path(options.rootPath);
mr = new MiniMRCluster(options.taskTrackers, fileSys.getUri().toString(),
1);
}
conf = getJobConf("TestBasicTableIOFormat");
srcPath = new Path(rootPath, options.srcPath);
fwdIndexRootPath = new Path(rootPath, options.fwdIndexRootPath);