org.apache.solr.hadoop.ZooKeeperInspector.downloadConfigDir()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(74)

本文整理了Java中org.apache.solr.hadoop.ZooKeeperInspector.downloadConfigDir()方法的一些代码示例,展示了ZooKeeperInspector.downloadConfigDir()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperInspector.downloadConfigDir()方法的具体详情如下:
包路径:org.apache.solr.hadoop.ZooKeeperInspector
类名称:ZooKeeperInspector
方法名:downloadConfigDir

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;

相关文章