集合未从Solr上传到Zookeeper

时间:2018-09-24 11:30:13

标签: solr apache-zookeeper solrcloud

我正在尝试使用zkClient命令将集合上载到Zookeeper,但是没有上载并给出 org.apache.solr.common.SolrException:java.net.UnknownHostException

主要问题是它可以在我的开发环境中运行,但是以某种方式无法通过质量检查。在连接字符串中插入了一些奇怪的unicode字符。

INFO  - 2018-09-21 14:02:12.848; org.apache.zookeeper.ZooKeeper; Initiating client connection, connectString=khostá172.29.182.164
2181 sessionTimeout=30000 watcher=org.apache.solr.common.cloud.SolrZkClient$3@6f75e721
Exception in thread "main" org.apache.solr.common.SolrException: java.net.UnknownHostException: khost 172.29.182.16
        at org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:168)
        at org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:114)
        at org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:104)
        at org.apache.solr.cloud.ZkCLI.main(ZkCLI.java:175)
Caused by: java.net.UnknownHostException: khost 172.29.182.16
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(Unknown Source)
        at java.net.InetAddress.getAddressesFromNameService(Unknown Source)
        at java.net.InetAddress.getAllByName0(Unknown Source)
        at java.net.InetAddress.getAllByName(Unknown Source)
        at java.net.InetAddress.getAllByName(Unknown Source)
        at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61)
        at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445)
        at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:380)
        at org.apache.solr.common.cloud.SolrZooKeeper.<init>(SolrZooKeeper.java:41)
        at org.apache.solr.common.cloud.ZkClientConnectionStrategy.createSolrZooKeeper(ZkClientConnectionStrategy.java:103)
        at org.apache.solr.common.cloud.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:37)
        at org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:143)
        ... 3 more
  

我在Solr Admin UI上发现了一个问题,在那里我可以看到 JVM参数   -DzkHost 在质量检查环境中显示为灰色,但在我的开发和生产环境中已正确突出显示。它会导致任何问题吗   上传收藏集?如果是,则需要进行哪些配置更改   做到不使其变灰。

谢谢!

0 个答案:

没有答案