Solr和Jetty部署问题 [英] Solr and Jetty deployment issue

查看:495
本文介绍了Solr和Jetty部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用solr +码头工作时遇到了麻烦.我一直在关注 信的说明- http://wiki.apache.org/solr/SolrJetty .它的工作原理很好.但是,当我多次重新启动码头时,在3/4这样的重新启动之后,它开始挂起.管理员页面只是没有加载,我的应用程序无法获得与solr的连接.我还创建了一个工作文件夹-/opt/solr/work.我还将tmpdir设置为/etc/default/jetty中的新路径.我可以从args下的管理控制台中确认tmpdir设置为新路径.因此,通过OS清除tmp文件基本上不是问题.

I am having trouble with getting solr + jetty to work. I am following all instructions to the letter from - http://wiki.apache.org/solr/SolrJetty. It works like a good. But when I restart jetty multiple times, after 3/4 such restarts it starts hanging. Admin pages just don't load and my app fails to acquire a connection with solr. I also created a work folder - /opt/solr/work. I am also setting tmpdir to a new path in /etc/default/jetty. I can confirm the tmpdir is set to the new path from admin dashboard, under args. So it's mostly not an issue with purging of tmp files by OS.

我可能会缺少什么?我应该看一下我的代码,看看我是否 提交不正确?

What might I be missing? Should I be rather looking at my code and see if I am not committing correctly?

我的配置-Solr 4.0.0和示例中的码头.具有Open JDK 7的Ubuntu 12.04.

My configs - Solr 4.0.0 and jetty from example. Ubuntu 12.04 with Open JDK 7.

我正在Ubuntu 12.04机器上运行Jetty 8,它与Solr示例捆绑在一起.当我使用start.jar且服务器无法正常启动时,在关闭码头时抛出ThreadPoolException-无法停止线程.

I am running Jetty 8, bundled with Solr example on a Ubuntu 12.04 machine. When I use start.jar and server does not come up properly, while shutting down jetty throws ThreadPoolException - Failing to stop threads.

这是堆栈跟踪的转储:

2012-12-27 23:00:15.084:WARN:oejut.QueuedThreadPool:1 threads could not be stopped
2012-12-27 23:00:15.084:INFO:oejut.QueuedThreadPool:Couldn't stop Thread[qtp766488133-16,5,main]
2012-12-27 23:00:15.085:INFO:oejut.QueuedThreadPool: at sun.misc.Unsafe.park(Native Method)
2012-12-27 23:00:15.085:INFO:oejut.QueuedThreadPool: at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
2012-12-27 23:00:15.085:INFO:oejut.QueuedThreadPool: at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2081)
2012-12-27 23:00:15.085:INFO:oejut.QueuedThreadPool: at java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1425)
2012-12-27 23:00:15.086:INFO:oejut.QueuedThreadPool: at java.util.concurrent.Executors$DelegatedExecutorService.awaitTermination(Executors.java:636)
2012-12-27 23:00:15.086:INFO:oejut.QueuedThreadPool: at org.apache.solr.core.SolrCore.close(SolrCore.java:835)
2012-12-27 23:00:15.086:INFO:oejut.QueuedThreadPool: at org.apache.solr.handler.admin.CoreAdminHandler.getCoreStatus(CoreAdminHandler.java:865)

推荐答案

看来问题出在solrconfig.xml.

如果我从solrconfig中删除/browse请求处理程序,问题就消失了.因此,不是Solr或码头问题,而是最有可能与它的配置有关.

If I remove /browse request handler from solrconfig problem goes away. So not a solr or jetty issue, but most likely related to config of it.

这篇关于Solr和Jetty部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆