Apache Solr“HTTP ERROR 503”在卸载Core并尝试重新创建它之后

时间:2014-11-10 15:34:28

标签: java solr jetty

我正在寻找如何使用Solr查询某些XML文件,因此我更改了位于schema.xml目录下的collection1文件。

然后我启动了一个查询,我知道它应该返回1个结果但是徒劳无功。

所以我想我可能不得不重新加载CORE(这个想法取自CoreAdmin -Solr Wiki)。所以我做了,但由于某种原因,我无法做到。多数民众赞成说,我决定重启服务(sorl/example java -jar start.jar),现在我收到了这个错误:

HTTP ERROR 503

Problem accessing /solr/. Reason:

    Server is shutting down or failed to initialize

Powered by Jetty://

这是命令提示输出,显示服务器正在运行??

0    [main] INFO  org.eclipse.jetty.server.Server  û jetty-8.1.10.v20130312
75   [main] INFO  org.eclipse.jetty.deploy.providers.ScanningAppProvider  û Depl
oyment monitor C:\Users\kapel_000\Desktop\solr-4.10.2\example\contexts at interv
al 0
83   [main] INFO  org.eclipse.jetty.deploy.DeploymentManager  û Deployable added
: C:\Users\kapel_000\Desktop\solr-4.10.2\example\contexts\solr-jetty-context.xml

1916 [main] INFO  org.eclipse.jetty.webapp.StandardDescriptorProcessor  û NO JSP
 Support for /solr, did not find org.apache.jasper.servlet.JspServlet
2066 [main] INFO  org.apache.solr.servlet.SolrDispatchFilter  û SolrDispatchFilt
er.init()
2083 [main] INFO  org.apache.solr.core.SolrResourceLoader  û JNDI not configured
 for solr (NoInitialContextEx)
2083 [main] INFO  org.apache.solr.core.SolrResourceLoader  û solr home defaulted
 to 'solr/' (could not find system property or JNDI)
2084 [main] INFO  org.apache.solr.core.SolrResourceLoader  û new SolrResourceLoa
der for directory: 'solr/'
2248 [main] INFO  org.apache.solr.core.ConfigSolr  û Loading container configura
tion from C:\Users\kapel_000\Desktop\solr-4.10.2\example\solr\solr.xml
2323 [main] INFO  org.apache.solr.core.CoresLocator  û Config-defined core root
directory: C:\Users\kapel_000\Desktop\solr-4.10.2\example\solr
2334 [main] INFO  org.apache.solr.core.CoreContainer  û New CoreContainer 307272
05
2335 [main] INFO  org.apache.solr.core.CoreContainer  û Loading cores into CoreC
ontainer [instanceDir=solr/]
2351 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  û S
etting socketTimeout to: 0
2352 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  û S
etting urlScheme to: null
2359 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  û S
etting connTimeout to: 0
2360 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  û S
etting maxConnectionsPerHost to: 20
2362 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  û S
etting corePoolSize to: 0
2363 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  û S
etting maximumPoolSize to: 2147483647
2363 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  û S
etting maxThreadIdleTime to: 5
2364 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  û S
etting sizeOfQueue to: -1
2365 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  û S
etting fairnessPolicy to: false
2596 [main] INFO  org.apache.solr.update.UpdateShardHandler  û Creating UpdateSh
ardHandler HTTP client with params: socketTimeout=0&connTimeout=0&retry=false
2599 [main] INFO  org.apache.solr.logging.LogWatcher  û SLF4J impl is org.slf4j.
impl.Log4jLoggerFactory
2601 [main] INFO  org.apache.solr.logging.LogWatcher  û Registering Log Listener
 [Log4j (org.slf4j.impl.Log4jLoggerFactory)]
2603 [main] INFO  org.apache.solr.core.CoreContainer  û Host Name:
7194 [main] INFO  org.apache.solr.core.CoresLocator  û Looking for core definiti
ons underneath C:\Users\kapel_000\Desktop\solr-4.10.2\example\solr
7213 [main] INFO  org.apache.solr.core.CoresLocator  û Found core collection1 in
 C:\Users\kapel_000\Desktop\solr-4.10.2\example\solr\collection1\
7215 [main] INFO  org.apache.solr.core.CoresLocator  û Found core collection1 in
 C:\Users\kapel_000\Desktop\solr-4.10.2\example\solr\collection5\
7216 [main] INFO  org.apache.solr.core.CoresLocator  û Found 2 core definitions
7220 [main] ERROR org.apache.solr.servlet.SolrDispatchFilter  û Could not start
Solr. Check solr/home property and the logs
7270 [main] ERROR org.apache.solr.core.SolrCore  û null:org.apache.solr.common.S
olrException: Found multiple cores with the name [collection1], with instancedir
s [C:\Users\kapel_000\Desktop\solr-4.10.2\example\solr\collection1\] and [C:\Use
rs\kapel_000\Desktop\solr-4.10.2\example\solr\collection5\]
        at org.apache.solr.core.CoreContainer.checkForDuplicateCoreNames(CoreCon
tainer.java:297)
        at org.apache.solr.core.CoreContainer.load(CoreContainer.java:241)
        at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDi
spatchFilter.java:189)
        at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.ja
va:136)
        at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119)

        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
va:719)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletC
ontextHandler.java:265)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1252)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandle
r.java:710)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494
)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(Stan
dardStarter.java:39)
        at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:1
86)
        at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentM
anager.java:494)
        at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.j
ava:141)
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(Scan
ningAppProvider.java:145)
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Sc
anningAppProvider.java:56)
        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:609)
        at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
        at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(Scanni
ngAppProvider.java:121)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(Deploymen
tManager.java:555)
        at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.
java:230)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(Aggregate
LifeCycle.java:81)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHand
ler.java:58)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrappe
r.java:96)
        at org.eclipse.jetty.server.Server.doStart(Server.java:280)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:64)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:12
59)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:118
2)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:473)
        at org.eclipse.jetty.start.Main.start(Main.java:615)
        at org.eclipse.jetty.start.Main.main(Main.java:96)

7276 [main] INFO  org.apache.solr.servlet.SolrDispatchFilter  û SolrDispatchFilt
er.init() done
7302 [main] INFO  org.eclipse.jetty.server.AbstractConnector  û Started SocketCo
nnector@0.0.0.0:8983

这有什么意义吗?我是不是很糟糕(不止一次?)或者是我不知道的事情?

2 个答案:

答案 0 :(得分:1)

这是你的错误:

  

7270 [main] ERRORorg.apache.solr.core.SolrCoreû   null:org.apache.solr.common.S olrException:找到多个核心   名称[collection1],带有instancedirs   [C:\ Users \ kapel_000 \ Desktop \ solr-4.10.2 \ example \ solr \ collection1]和   [C:\用户\ kapel_000 \桌面\ solr的-4.10.2 \示例\ solr的\ collection5]

检查你的配置,你已经配置了两次核心collection1。一次指向example\solr\collection1,一次指向example\solr\collection5

答案 1 :(得分:-1)

HTTP 错误 503 访问 /solr/ 时出现问题。原因:

Server is shutting down or failed to initialize