0

我有 4 个节点 SolrCloud 集群和单独的 zookeeper 合奏。我使用https://launchpad.net/~blubolt/+archive/preciseplatform repo 来获取 solr-jetty。当我开始 jetty8 时,我在我的日志文件中得到了这个:

    Nov 25, 2012 4:20:26 PM org.apache.solr.schema.IndexSchema readSchema
INFO: Schema name=example
Nov 25, 2012 4:20:26 PM org.apache.solr.common.SolrException log
SEVERE: null:java.lang.VerifyError: class org.apache.solr.schema.BoolField$1$1 overrides final method setReader.(Ljava/io/Reader;)V
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:415)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:377)
        at org.apache.solr.schema.BoolField.<clinit>(BoolField.java:66)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:432)
        at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:459)
        at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:455)
        at org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:81)
        at org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:43)
        at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:142)
        at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:369)
        at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:113)
        at org.apache.solr.core.CoreContainer.getSchemaFromZk(CoreContainer.java:1438)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:837)
        at org.apache.solr.core.CoreContainer.load(CoreContainer.java:539)
        at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:312)
        at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:106
        at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:114)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:755)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:258)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at org.eclipse.jetty.deploy.WebAppDeployer.scan(WebAppDeployer.java:309)
        at org.eclipse.jetty.deploy.WebAppDeployer.doStart(WebAppDeployer.java:189)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:63)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:53)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:91)
        at org.eclipse.jetty.server.Server.doStart(Server.java:262)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1215)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1138)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:457)
        at org.eclipse.jetty.start.Main.start(Main.java:602)
        at org.eclipse.jetty.start.Main.main(Main.java:82)

在 myhostname:8983/solr/# 我在每个链接上都看到带有“正在加载...”的管理界面。与默认或自定义 schema.xml 相同。这似乎是破坏方案解析器的东西。有任何想法吗?

4

1 回答 1

0

问题关闭。切勿将一个配置目录用于不同的 solr 版本。删除 /etc/solr/collection1/conf,删除 zookeeper 数据,然后重新安装最新版本的 solr-common 和 solr-jetty。现在一切正常。

于 2012-11-29T12:58:47.013 回答