You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by yayati <ya...@gmail.com> on 2012/11/30 06:35:38 UTC
Re: Replication fails in SolrCloud
Hi All,
I also got similar error while moving my solr 3.6 based application on solr
cloud. While setting solrcloud i got this error :
SolrCore Initialization Failures
ns01:
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
ZkSolrResourceLoader does not support getConfigDir() - likely, what you are
trying to do is not supported in ZooKeeper mode
ns02:
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
ZkSolrResourceLoader does not support getConfigDir() - likely, what you are
trying to do is not supported in ZooKeeper mode
--
View this message in context: http://lucene.472066.n3.nabble.com/Zookeeper-aware-Replication-in-SolrCloud-tp3479497p4023398.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Replication fails in SolrCloud
Posted by yayati <ya...@gmail.com>.
we have put other configuration files in conf directory now also have
with zookeeper in addition to solrconfig and schema..
>
> Does solr 3.6 search component works for solrcloud?
>
> On Friday, November 30, 2012, Mark Miller-3 [via Lucene] <
ml-node+s472066n4023486h66@n3.nabble.com> wrote:
>>
>> On Nov 30, 2012, at 11:01 AM, yayati <[hidden email]> wrote:
>>
>>> We have created some custom search component, where this error occur in
>>> inform method at line
>>> .getResourceLoader().getConfigDir()));
>>
>> Does your custom component try and get the config dir? What for?
>>
>> - Mark
>>
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
below:
>>
http://lucene.472066.n3.nabble.com/Zookeeper-aware-Replication-in-SolrCloud-tp3479497p4023486.html
>> To unsubscribe from Zookeeper aware Replication in SolrCloud, click here.
>> NAML
--
Yayati Rajpal
--
View this message in context: http://lucene.472066.n3.nabble.com/Zookeeper-aware-Replication-in-SolrCloud-tp3479497p4023646.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Replication fails in SolrCloud
Posted by Mark Miller <ma...@gmail.com>.
On Nov 30, 2012, at 11:01 AM, yayati <ya...@gmail.com> wrote:
> We have created some custom search component, where this error occur in
> inform method at line
> .getResourceLoader().getConfigDir()));
Does your custom component try and get the config dir? What for?
- Mark
Re: Replication fails in SolrCloud
Posted by yayati <ya...@gmail.com>.
Hi Mark,
Please find detail stacktrace :
2012-11-30 19:32:58,260 [pool-2-thread-1] ERROR
apache.solr.core.CoreContainer - null:org.apache.solr.common.SolrException:
ZkSolrResourceLoader does not support getConfigDir() - likely, what you are
trying to do is not supported in ZooKeeper mode
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:721)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:566)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:850)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:534)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:356)
at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:308)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4638)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.solr.common.cloud.ZooKeeperException:
ZkSolrResourceLoader does not support getConfigDir() - likely, what you are
trying to do is not supported in ZooKeeper mode
at
org.apache.solr.cloud.ZkSolrResourceLoader.getConfigDir(ZkSolrResourceLoader.java:100)
We have created some custom search component, where this error occur in
inform method at line
.getResourceLoader().getConfigDir()));
For set up i did following steps.
1. Add version field in schema.xml
2. In seperate zookeeper server, upload configuration of solr.
3. Add following parameter in tomcat startup
-Dsolr.solr.home=/home/live/solr -DhostContext=solr
-DzkClientTimeout=20000 -DzkHost=172.23.xx.xx:2181
4. solr.xml contains:
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="false" sharedLib="/home/live/lib">
<cores shareSchema="true" adminPath="/admin/cores"
zkClientTimeout="${zkClientTimeout:}"
hostContext="${hostContext:}">
<core name="ns01" instanceDir="." />
<core name="ns02" instanceDir="." />
<core name="ns03" instanceDir="."/>
Let me know if you need more details.
--
View this message in context: http://lucene.472066.n3.nabble.com/Zookeeper-aware-Replication-in-SolrCloud-tp3479497p4023484.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Replication fails in SolrCloud
Posted by Mark Miller <ma...@gmail.com>.
Need more information about your setup and config.
Longer stack traces would be helpful as well.
- Mark
On Nov 30, 2012, at 12:35 AM, yayati <ya...@gmail.com> wrote:
> Hi All,
>
> I also got similar error while moving my solr 3.6 based application on solr
> cloud. While setting solrcloud i got this error :
> SolrCore Initialization Failures
>
> ns01:
> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
> ZkSolrResourceLoader does not support getConfigDir() - likely, what you are
> trying to do is not supported in ZooKeeper mode
> ns02:
> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
> ZkSolrResourceLoader does not support getConfigDir() - likely, what you are
> trying to do is not supported in ZooKeeper mode
>
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Zookeeper-aware-Replication-in-SolrCloud-tp3479497p4023398.html
> Sent from the Solr - User mailing list archive at Nabble.com.