如何跟踪和排除SOLR i / o故障(CREATE错误)?

时间:2011-12-05 21:10:49

标签: java debugging memory solr

大家好:我是SOLR的新手,我正在尝试在相当复杂的代码库中解决部署失败问题。

我当然需要立即理解这个错误:

org.apache.solr.common.SolrException:执行CREATE的默认实现时出错

Error executing default implementation of CREATE

request: http://localhost:8983/solr/admin/cores?action=CREATE&name=tmp_xxxx_count_abc&instanceDir=/tmp/solr_indexes_re/viewbuilder_pckg100121/myDataDirectory/part-00000&wb=javabin&version=2

但一般来说,我有一个长期目标是从这个问题中学习:

1)一般情况下:在调试SOLR应用程序时,如何确定客户端上的错误,服务器上的错误?我是否应该研究可靠,有用的面向用户的日志?

2)在运行“CREATE”的“默认实施”时,SOLR的投诉是什么意思?这会引发任何直接恐惧吗?

3)我开始注意到,有时候,当内存不足时,SOLR写鳕鱼会抛出一些奇怪的错误信息,例如它无法获得锁定。 - 运行/调试SOLR客户端和解释错误消息是否有一些不成文的基本规则?

编辑有关堆叠痕迹的更多细节:

在终端中,我也看到了服务器端堆栈跟踪:

SEVERE: org.apache.solr.common.SolrException: Error executing default implementation of CREATE
at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:308)
at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:114)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:309)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:185)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in classpath or '/tmp/solr_indexes_repo/viewbuilder_pckg100121/xxxxxxxx_count_distinct/part-00000/conf/', cwd=/Users/jayunit100/Development/apache-solr-3.4.0/example
    at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:268)
    at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:234)
    at org.apache.solr.core.Config.<init>(Config.java:141)
    at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:131)
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:435)
    at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:303)
    ... 21 more

0 个答案:

没有答案