So, found the following line in the guide:

   java -DzkRun -DnumShards=2
-Dbootstrap_confdir=./solr/collection1/conf
-Dcollection.configName=myconf -jar start.jar

using a completely clean, new, solr_home.

In my own bootstrap dir, I have my own solrconfig.xml and schema.xml,
and I modified to have:

 -DnumShards=8 -DmaxShardsPerNode=8

When I went to start loading data into this, I failed:

Caused by: org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
No registered leader was found after waiting for 4000ms , collection:
rni slice: shard4
        at 
org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:554)
        at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
        at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
        at 
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
        at 
org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:285)
        at 
org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:271)
        at 
com.basistech.rni.index.internal.SolrCloudEvaluationNameIndex.<init>(SolrCloudEvaluationNameIndex.java:53)

with corresponding log traffic in the solr log.

The cloud page in the Solr admin app shows the IP address in green.
It's a bit hard to read in general, it's all squished up to the top.




On Tue, Feb 24, 2015 at 4:33 PM, Benson Margulies <bimargul...@gmail.com> wrote:
> On Tue, Feb 24, 2015 at 4:27 PM, Chris Hostetter
> <hossman_luc...@fucit.org> wrote:
>>
>> : Unfortunately, this is all 5.1 and instructs me to run the 'start from
>> : scratch' process.
>>
>> a) checkout the left nav of any ref guide page webpage which has a link to
>> "Older Versions of this Guide (PDF)"
>>
>> b) i'm not entirely sure i understand what you're asking, but i'm guessing
>> you mean...
>>
>> * you have a fully functional individual instance of Solr, with a single
>> core
>> * you only want to run that one single instance of the Solr process
>> * you want tha single solr process to be a "SolrCould" of one "node", but
>> replace your single "core" with a collection that is divided into 8
>> shards.
>> * presumably: you don't care about replication since you are only trying
>> to run one node.
>>
>> what you want to look into (in the 4.10 ref guide) is how to "bootstrap" a
>> SolrCloud instance from a non-SolrCloud node -- ie: startup zk, tell solr
>> to take the configs from your single core and uploda them to zk as a
>> configset, and register that single core as a collection.
>>
>> That should give you a single instance of solrcloud, with a single
>> collection, consisting of one shard (your original core)
>>
>> Then you should be able to use the "SPLITSHARD" command to split your
>> single shard into 2 shards, and then split them again, etc... (i don't
>> think you can split directly to 8-sub shards with a single command)
>>
>>
>>
>> FWIW: unless you no longer have access to the original data, it would
>> almost certainly be a lot easier to just start with a clean install of
>> Solr in cloud mode, then create a collection with 8 shards, then re-index
>> your data.
>
> OK, now I'm good to go. Thanks.
>
>>
>>
>>
>> -Hoss
>> http://www.lucidworks.com/

Reply via email to