lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danesh Kuruppu <dknkuru...@gmail.com>
Subject Re: Error occurred when getting solr-core
Date Mon, 24 Nov 2014 09:36:07 GMT
Hi all,

Found the RC for this error. I missed some dependency library for sore-core.

Thanks
Danesh

On Mon, Nov 24, 2014 at 1:43 PM, Danesh Kuruppu <dknkuruppu@gmail.com>
wrote:

> Hi all,
>
> Cores are not loaded to the CoreContainer. my solr.xml configuration is
>
> <solr>
>>   <solrcloud>
>>     <str name="host">127.0.0.1</str>
>>     <int name="hostPort">${jetty.port:8983}</int>
>>     <str name="hostContext">${hostContext:solr}</str>
>>     <int name="zkClientTimeout">${zkClientTimeout:30000}</int>
>>     <str name="shareSchema">${shareSchema:false}</str>
>>     <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
>>   </solrcloud>
>>
>>   <shardHandlerFactory name="shardHandlerFactory"
>>     class="HttpShardHandlerFactory">
>>     <int name="socketTimeout">${socketTimeout:120000}</int>
>>     <int name="connTimeout">${connTimeout:15000}</int>
>>   </shardHandlerFactory>
>> </solr>
>>
>
> Please help.
> Thanks
>
> On Mon, Nov 24, 2014 at 11:35 AM, Danesh Kuruppu <dknkuruppu@gmail.com>
> wrote:
>
>> Hi all,
>>
>> I am using solr version 4.7.2
>>
>> I am getting following when communicating with solr server.
>>
>> org.apache.solr.common.SolrException: No such core: db
>>>     at
>>> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>>     at
>>> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:118)
>>>     at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)
>>>     at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)
>>>
>>
>> I am using EmbeddedSorlServer, It is initialized as follows
>>
>>         CoreContainer coreContainer = new
>>> CoreContainer(solrHome.getPath());
>>>         coreContainer.load();
>>>         this.server = new EmbeddedSolrServer(coreContainer, "db");
>>>
>>
>> in solr-home, there is a directory called db. in core.properties file, I
>> define the name and dataDir.
>>
>> Couldn't find the cause for this error.
>>
>> Please help.
>>
>> Thanks
>> Danesh
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message