Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Windows上的Solr 6在创建新集合时失败_Java_Solr_Lucene - Fatal编程技术网

Java Windows上的Solr 6在创建新集合时失败

Java Windows上的Solr 6在创建新集合时失败,java,solr,lucene,Java,Solr,Lucene,我在Windows7机器上使用Solr6.1.0 我从这里下载了Solr 6: 我从这里下载了服务器JRE(8u92): 我编写了这个BAT文件来启动Solr: set JAVA_HOME="F:\Users\username\Downloads\solr-6.1.0\jdk1.8.0_92\" cd "F:\Users\username\Downloads\solr-6.1.0\bin\" solr start -e cloud -noprompt 问题在于:Solr管理UI运行正常,

我在Windows7机器上使用Solr6.1.0

  • 我从这里下载了Solr 6:
  • 我从这里下载了服务器JRE(8u92):
  • 我编写了这个BAT文件来启动Solr:

    set JAVA_HOME="F:\Users\username\Downloads\solr-6.1.0\jdk1.8.0_92\"
    cd "F:\Users\username\Downloads\solr-6.1.0\bin\"
    solr start -e cloud -noprompt
    
问题在于:Solr管理UI运行正常,我可以查询样本集合,但当我尝试创建新连接时,会出现错误:

Collection: collection1 operation: create failed:java.lang.IllegalArgumentException: Path must not end with / character
at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:58)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1024)
at org.apache.solr.common.cloud.SolrZkClient$5.execute(SolrZkClient.java:314)
at org.apache.solr.common.cloud.SolrZkClient$5.execute(SolrZkClient.java:311)
at org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:60)
at org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:311)
at org.apache.solr.cloud.OverseerCollectionMessageHandler.validateConfig(OverseerCollectionMessageHandler.java:2491)
at org.apache.solr.cloud.OverseerCollectionMessageHandler.createCollection(OverseerCollectionMessageHandler.java:1838)
at org.apache.solr.cloud.OverseerCollectionMessageHandler.processMessage(OverseerCollectionMessageHandler.java:224)
at org.apache.solr.cloud.OverseerTaskProcessor$Runner.run(OverseerTaskProcessor.java:463)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$22(ExecutorUtil.java:229)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


null:org.apache.solr.common.SolrException: Path must not end with / character
at org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:273)
at org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:204)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)
at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:663)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:445)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:518)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
at java.lang.Thread.run(Thread.java:745)
通过在网上搜索,我发现以前的帖子似乎帮不了什么忙,我对servlet及其工作方式真的是个新手。 我没有Tomcat(我所做的一切如上所述。上面唯一缺少的是提取所需文件夹中的归档文件),所以我想我使用内置Jetty服务器


有人知道这里出了什么问题吗?

将新集合添加到多核(即基于云的)Solr实例时,需要在集合名称旁边指定一个配置集。表单上的名称文本框下有一个下拉列表。对于示例SolrCloud配置,唯一可用的选项是
gettingstarted

如果不提供配置集,则会出现您描述的“路径不得以/character结尾”错误


顺便说一句,你不必担心Tomcat。在Solr5之前,可以在Tomcat或JBoss等web服务器中部署Solr。Solr 5不鼓励这样做,不再支持这样做-Solr作为独立服务运行,使用内置Jetty实例提供内容。

向多核(即基于云的)Solr实例添加新集合时,需要在集合名称旁边指定配置集。表单上的名称文本框下有一个下拉列表。对于示例SolrCloud配置,唯一可用的选项是
gettingstarted

如果不提供配置集,则会出现您描述的“路径不得以/character结尾”错误


顺便说一句,你不必担心Tomcat。在Solr5之前,可以在Tomcat或JBoss等web服务器中部署Solr。Solr 5不鼓励这样做,不再支持这样做-Solr作为独立服务运行,使用内置Jetty实例提供内容。

如何添加新收藏?通过管理界面,或通过HTTP请求?@MattPearce通过管理界面。您如何添加新收藏?通过管理界面,还是通过HTTP请求?@MattPearce通过管理界面。非常感谢。我刚刚创建了新的集合。:)谢谢。我刚刚创建了新的集合。:)