SolrOutputFormat.setupSolrHomeCache(options.solrHomeDir, job);
} else {
assert options.zkHost != null;
// use the config that this collection uses for the SolrHomeCache.
ForkedZooKeeperInspector zki = new ForkedZooKeeperInspector();
SolrZkClient zkClient = zki.getZkClient(options.zkHost);
try {
String configName = zki.readConfigName(zkClient, options.collection);
File tmpSolrHomeDir = zki.downloadConfigDir(zkClient, configName);
SolrOutputFormat.setupSolrHomeCache(tmpSolrHomeDir, job);
LOG.debug("Using " + tmpSolrHomeDir + " as solr home");
options.solrHomeDir = tmpSolrHomeDir;
} finally {
zkClient.close();
}
}
// MorphlineMapRunner runner = setupMorphline(job, options);
// if (options.isDryRun && runner != null) {