本文整理了Java中org.apache.solr.hadoop.ZooKeeperInspector.downloadConfigDir()
方法的一些代码示例,展示了ZooKeeperInspector.downloadConfigDir()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperInspector.downloadConfigDir()
方法的具体详情如下:
包路径:org.apache.solr.hadoop.ZooKeeperInspector
类名称:ZooKeeperInspector
方法名:downloadConfigDir
[英]Download and return the config directory from ZK
[中]从ZK下载并返回配置目录
代码示例来源:origin: NGDATA/hbase-indexer
public static File downloadConfigDir(SolrZkClient zkClient, String configName) throws IOException, InterruptedException, KeeperException {
return DELEGATE.downloadConfigDir(zkClient, configName);
}
}
代码示例来源:origin: com.cloudera.search/search-mr
public File downloadConfigDir(SolrZkClient zkClient, String configName) throws IOException {
return downloadConfigDir(zkClient, configName, true);
}
代码示例来源:origin: com.ngdata/hbase-indexer-mr
public static File downloadConfigDir(SolrZkClient zkClient, String configName, boolean useZkSolrConfig) throws IOException {
return DELEGATE.downloadConfigDir(zkClient, configName, useZkSolrConfig);
}
}
代码示例来源:origin: cloudera/search
try {
String configName = zki.readConfigName(zkClient, options.collection);
File tmpSolrHomeDir = zki.downloadConfigDir(zkClient, configName);
SolrOutputFormat.setupSolrHomeCache(tmpSolrHomeDir, job);
options.solrHomeDir = tmpSolrHomeDir;
代码示例来源:origin: com.cloudera.search/search-mr
try (SolrZkClient zkClient = zki.getZkClient(options.zkHost)) {
String configName = zki.readConfigName(zkClient, options.collection);
File tmpSolrHomeDir = zki.downloadConfigDir(zkClient, configName, options.useZkSolrConfig);
SolrOutputFormat.setupSolrHomeCache(tmpSolrHomeDir, job);
options.solrHomeDir = tmpSolrHomeDir;
内容来源于网络,如有侵权,请联系作者删除!