Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E20329E27 for ; Wed, 29 Feb 2012 07:12:25 +0000 (UTC) Received: (qmail 27421 invoked by uid 500); 29 Feb 2012 07:12:24 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 27374 invoked by uid 500); 29 Feb 2012 07:12:24 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 27349 invoked by uid 99); 29 Feb 2012 07:12:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 07:12:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 07:12:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6059A54FD5 for ; Wed, 29 Feb 2012 07:11:59 +0000 (UTC) Date: Wed, 29 Feb 2012 07:11:59 +0000 (UTC) From: "Sami Siren (Resolved) (JIRA)" To: dev@lucene.apache.org Message-ID: <1198651745.1661.1330499519396.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <711727139.20025.1330203948855.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (SOLR-3165) Cannot use DIH in Solrcloud + Zookeeper MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sami Siren resolved SOLR-3165. ------------------------------ Resolution: Fixed Fix Version/s: 4.0 Assignee: Sami Siren Thanks Alexey, Mark. I took the latest patch from Alexey, incorporated Marks suggestion and committed this to trunk. > Cannot use DIH in Solrcloud + Zookeeper > --------------------------------------- > > Key: SOLR-3165 > URL: https://issues.apache.org/jira/browse/SOLR-3165 > Project: Solr > Issue Type: Bug > Components: contrib - DataImportHandler > Affects Versions: 4.0 > Reporter: Agnieszka > Assignee: Sami Siren > Fix For: 4.0 > > Attachments: SOLR-3165.patch, SOLR-3165.patch > > > There is a problem with configure DIH in Solrcloud + Zookeeper configuration from wiki: > http://wiki.apache.org/solr/SolrCloud. > Standard configuration in solrconfig.xml: > {code:xml} > > > db-data-config.xml > > > {code} > After starting solr with zookeeper I've got errors: > {noformat} > Feb 20, 2012 11:30:12 AM org.apache.solr.common.SolrException log > SEVERE: null:org.apache.solr.common.SolrException > at org.apache.solr.core.SolrCore.(SolrCore.java:606) > at org.apache.solr.core.SolrCore.(SolrCore.java:490) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:705) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:442) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:313) > at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:262) > at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:98) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: org.apache.solr.common.SolrException: FATAL: Could not create importer. DataImporter config invalid > at org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:120) > at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:542) > at org.apache.solr.core.SolrCore.(SolrCore.java:601) > ... 31 more > Caused by: org.apache.solr.common.cloud.ZooKeeperException: ZkSolrResourceLoader does not support getConfigDir() - likely, w > at org.apache.solr.cloud.ZkSolrResourceLoader.getConfigDir(ZkSolrResourceLoader.java:99) > at org.apache.solr.handler.dataimport.SimplePropertiesWriter.init(SimplePropertiesWriter.java:47) > at org.apache.solr.handler.dataimport.DataImporter.(DataImporter.java:112) > at org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:114) > ... 33 more > {noformat} > But the db-data-config.xml file exists in Zookeeper: > {noformat} > [zk: localhost:2181(CONNECTED) 0] ls /configs/conf1 [admin-extra.menu-top.html, dict, solrconfig.xml, dataimport.properties, admin-extra.html, solrconfig.xml.old, solrconfig.xml.new, solrconfig.xml~, xslt, db-data-config.xml, velocity, elevate.xml, admin-extra.menu-bottom.html, solrconfig.xml.dataimport, schema.xml] > [zk: localhost:2181(CONNECTED) 1] > {noformat} > I downloaded solr from trunk (2012-02-16) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org