You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cassandra Targett (JIRA)" <ji...@apache.org> on 2016/11/18 23:38:59 UTC
[jira] [Closed] (SOLR-4755) Solr cloud 4.1.0 - core creation
problem
[ https://issues.apache.org/jira/browse/SOLR-4755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cassandra Targett closed SOLR-4755.
-----------------------------------
Resolution: Incomplete
Considering the age of this issue, there's not enough info here to find a consistently reproducible bug, and this sounds like it was a bit more a configuration issue.
> Solr cloud 4.1.0 - core creation problem
> -----------------------------------------
>
> Key: SOLR-4755
> URL: https://issues.apache.org/jira/browse/SOLR-4755
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Affects Versions: 4.1
> Environment: linux
> Reporter: Vijay Tiwary
> Priority: Critical
> Labels: dynamicallycorecreation, solrcloud
>
> I am trying to create core dynamically through my java appliction in solr cloud having two shard.
> CloudSolrServer cloudSolrServer = new CloudSolrServer("localhost:9983", new LBHttpSolrServer ("http://localhost:8983/solr"));
> CoreAdminRequest.Create req = new CoreAdminRequest.Create() {
>
> private static final long serialVersionUID = -8825247378713661625L;
>
> @Override public SolrParams getParams() {
> ModifiableSolrParams modifiableSolrParams = (ModifiableSolrParams) super.getParams();
> modifiableSolrParams.set("collection.configName", "mycore");
> return modifiableSolrParams;
> }
> };
> req.setInstanceDir("/solr/master/mycorepath");
> req.setCollection("mycore");
> CoreAdminResponse res = req.process(cloudSolrServer.getLbServer());
> However i am getting the error:
> **Specified config does not exist in ZooKeeper:mycore**
> When I checked in the solr admin console I found the collection "mycore" is not completely created[i.e it does not have the folder symbol] and there is no config with the name "mycore".
> **How do I go about this problem. What is the standard way for creating core dynamically in a 2 shard solr cloud (solr 4.1.0)?**
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org