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 Zheng Lin Edwin Yeo <ed...@gmail.com> on 2015/07/06 06:17:32 UTC

Problems with loading core when starting Solr 5.2.1

Hi,

I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.

Whenever I tried to start Solr using these command, the Solr servers gets
started, but none of the cores is actually loaded.
- bin\solr.cmd start -cloud -z localhost:2181
- bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181

I can only get the core to be loaded when I use the following command
 - bin\solr.cmd -e cloud -z localhost:2181

However, this command is actually the step by step guide to create a new
collection, and I don't have to create a new collection each time I start
Solr.

Is there anything wrong with my first two commands?

Regards,
Edwin

Re: Problems with loading core when starting Solr 5.2.1

Posted by Fadi Mohsen <fa...@gmail.com>.
Found the answer here:
http://lucidworks.com/blog/call-maybe-solrcloud-jepsen-flaky-networks/

/Fadi

> On 07 Jul 2015, at 11:48, Fadi Mohsen <fa...@gmail.com> wrote:
> 
> Hi, Would Solr give inconsistent results if ZK quorum not achieved + one leader (last state) goes down?
> 
> /Fadi
> 
>> On 07 Jul 2015, at 05:17, Erick Erickson <er...@gmail.com> wrote:
>> 
>> A Zookeeper quorum is not necessary for searching. Well,
>> that's stating it a little too strongly. A Solr cluster will do its
>> best to search given the last state of the cluster each
>> Solr node got from Zookeeper.
>> 
>> You will not be able to index without a quorum though.
>> 
>> bq: How do I check if my Solr is running based on the external ZooKeeper or the
>> embedded ZooKeeper in Solr 5.2.1?
>> 
>> You have to specify the -DzkRun to run embedded ZK. If you didn't do that,
>> it's not running.
>> 
>> Best,
>> Erick
>> 
>> On Mon, Jul 6, 2015 at 8:13 PM, Zheng Lin Edwin Yeo
>> <ed...@gmail.com> wrote:
>>> How do I check if my Solr is running based on the external ZooKeeper or the
>>> embedded ZooKeeper in Solr 5.2.1?
>>> 
>>> Currently I can still do a search even though I've shut down 2 out of 3
>>> ZooKeeper. Only the Cloud tab is down, but the rest of the search are still
>>> working.
>>> 
>>> Regards,
>>> Edwin
>>> 
>>> 
>>> 
>>>>> On 6 July 2015 at 20:59, Shawn Heisey <ap...@elyograg.org> wrote:
>>>>> 
>>>>> On 7/5/2015 10:17 PM, Zheng Lin Edwin Yeo wrote:
>>>>> I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.
>>>>> 
>>>>> Whenever I tried to start Solr using these command, the Solr servers gets
>>>>> started, but none of the cores is actually loaded.
>>>>> - bin\solr.cmd start -cloud -z localhost:2181
>>>>> - bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181
>>>>> 
>>>>> I can only get the core to be loaded when I use the following command
>>>>> - bin\solr.cmd -e cloud -z localhost:2181
>>>> 
>>>> After you have created the cloud example, you need different commands to
>>>> restart or start those nodes.  See the "Restarting Nodes" section of
>>>> this page for some help with doing this:
>>>> 
>>>> 
>>>> https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud
>>>> 
>>>> Thanks,
>>>> Shawn
>>>> 
>>>> 

Re: Problems with loading core when starting Solr 5.2.1

Posted by Fadi Mohsen <fa...@gmail.com>.
Hi, Would Solr give inconsistent results if ZK quorum not achieved + one leader (last state) goes down?

/Fadi

> On 07 Jul 2015, at 05:17, Erick Erickson <er...@gmail.com> wrote:
> 
> A Zookeeper quorum is not necessary for searching. Well,
> that's stating it a little too strongly. A Solr cluster will do its
> best to search given the last state of the cluster each
> Solr node got from Zookeeper.
> 
> You will not be able to index without a quorum though.
> 
> bq: How do I check if my Solr is running based on the external ZooKeeper or the
> embedded ZooKeeper in Solr 5.2.1?
> 
> You have to specify the -DzkRun to run embedded ZK. If you didn't do that,
> it's not running.
> 
> Best,
> Erick
> 
> On Mon, Jul 6, 2015 at 8:13 PM, Zheng Lin Edwin Yeo
> <ed...@gmail.com> wrote:
>> How do I check if my Solr is running based on the external ZooKeeper or the
>> embedded ZooKeeper in Solr 5.2.1?
>> 
>> Currently I can still do a search even though I've shut down 2 out of 3
>> ZooKeeper. Only the Cloud tab is down, but the rest of the search are still
>> working.
>> 
>> Regards,
>> Edwin
>> 
>> 
>> 
>>> On 6 July 2015 at 20:59, Shawn Heisey <ap...@elyograg.org> wrote:
>>> 
>>>> On 7/5/2015 10:17 PM, Zheng Lin Edwin Yeo wrote:
>>>> I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.
>>>> 
>>>> Whenever I tried to start Solr using these command, the Solr servers gets
>>>> started, but none of the cores is actually loaded.
>>>> - bin\solr.cmd start -cloud -z localhost:2181
>>>> - bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181
>>>> 
>>>> I can only get the core to be loaded when I use the following command
>>>> - bin\solr.cmd -e cloud -z localhost:2181
>>> 
>>> After you have created the cloud example, you need different commands to
>>> restart or start those nodes.  See the "Restarting Nodes" section of
>>> this page for some help with doing this:
>>> 
>>> 
>>> https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud
>>> 
>>> Thanks,
>>> Shawn
>>> 
>>> 

Re: Problems with loading core when starting Solr 5.2.1

Posted by Zheng Lin Edwin Yeo <ed...@gmail.com>.
Yes, it shows the following under 'args'.

   - -DzkHost=localhost:2181,localhost:2182,localhost:2183


Regards,
Edwin


On 7 July 2015 at 15:22, Upayavira <uv...@odoko.co.uk> wrote:

> If the zookeeper used isnt visible via the ui, it should be. Does it
> show on the main dashboard under 'args'?
>
> Upayavira
>
> On Tue, Jul 7, 2015, at 04:30 AM, Zheng Lin Edwin Yeo wrote:
> > Thanks Erick for the info.
> >
> > So mine should be running on external ZooKeeper, since I'm using  "-
> > bin\solr.cmd
> > -e cloud -z localhost:2181" and not -DzkRun, and Solr is able to read the
> > updated the configuration after I update it in the external ZooKeeper.
> >
> > Regards,
> > Edwin
> >
> >
> > On 7 July 2015 at 11:17, Erick Erickson <er...@gmail.com> wrote:
> >
> > > A Zookeeper quorum is not necessary for searching. Well,
> > > that's stating it a little too strongly. A Solr cluster will do its
> > > best to search given the last state of the cluster each
> > > Solr node got from Zookeeper.
> > >
> > > You will not be able to index without a quorum though.
> > >
> > > bq: How do I check if my Solr is running based on the external
> ZooKeeper
> > > or the
> > > embedded ZooKeeper in Solr 5.2.1?
> > >
> > > You have to specify the -DzkRun to run embedded ZK. If you didn't do
> that,
> > > it's not running.
> > >
> > > Best,
> > > Erick
> > >
> > > On Mon, Jul 6, 2015 at 8:13 PM, Zheng Lin Edwin Yeo
> > > <ed...@gmail.com> wrote:
> > > > How do I check if my Solr is running based on the external ZooKeeper
> or
> > > the
> > > > embedded ZooKeeper in Solr 5.2.1?
> > > >
> > > > Currently I can still do a search even though I've shut down 2 out
> of 3
> > > > ZooKeeper. Only the Cloud tab is down, but the rest of the search are
> > > still
> > > > working.
> > > >
> > > > Regards,
> > > > Edwin
> > > >
> > > >
> > > >
> > > > On 6 July 2015 at 20:59, Shawn Heisey <ap...@elyograg.org> wrote:
> > > >
> > > >> On 7/5/2015 10:17 PM, Zheng Lin Edwin Yeo wrote:
> > > >> > I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.
> > > >> >
> > > >> > Whenever I tried to start Solr using these command, the Solr
> servers
> > > gets
> > > >> > started, but none of the cores is actually loaded.
> > > >> > - bin\solr.cmd start -cloud -z localhost:2181
> > > >> > - bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181
> > > >> >
> > > >> > I can only get the core to be loaded when I use the following
> command
> > > >> >  - bin\solr.cmd -e cloud -z localhost:2181
> > > >>
> > > >> After you have created the cloud example, you need different
> commands to
> > > >> restart or start those nodes.  See the "Restarting Nodes" section of
> > > >> this page for some help with doing this:
> > > >>
> > > >>
> > > >>
> > >
> https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud
> > > >>
> > > >> Thanks,
> > > >> Shawn
> > > >>
> > > >>
> > >
>

Re: Problems with loading core when starting Solr 5.2.1

Posted by Upayavira <uv...@odoko.co.uk>.
If the zookeeper used isnt visible via the ui, it should be. Does it
show on the main dashboard under 'args'?

Upayavira 

On Tue, Jul 7, 2015, at 04:30 AM, Zheng Lin Edwin Yeo wrote:
> Thanks Erick for the info.
> 
> So mine should be running on external ZooKeeper, since I'm using  "-
> bin\solr.cmd
> -e cloud -z localhost:2181" and not -DzkRun, and Solr is able to read the
> updated the configuration after I update it in the external ZooKeeper.
> 
> Regards,
> Edwin
> 
> 
> On 7 July 2015 at 11:17, Erick Erickson <er...@gmail.com> wrote:
> 
> > A Zookeeper quorum is not necessary for searching. Well,
> > that's stating it a little too strongly. A Solr cluster will do its
> > best to search given the last state of the cluster each
> > Solr node got from Zookeeper.
> >
> > You will not be able to index without a quorum though.
> >
> > bq: How do I check if my Solr is running based on the external ZooKeeper
> > or the
> > embedded ZooKeeper in Solr 5.2.1?
> >
> > You have to specify the -DzkRun to run embedded ZK. If you didn't do that,
> > it's not running.
> >
> > Best,
> > Erick
> >
> > On Mon, Jul 6, 2015 at 8:13 PM, Zheng Lin Edwin Yeo
> > <ed...@gmail.com> wrote:
> > > How do I check if my Solr is running based on the external ZooKeeper or
> > the
> > > embedded ZooKeeper in Solr 5.2.1?
> > >
> > > Currently I can still do a search even though I've shut down 2 out of 3
> > > ZooKeeper. Only the Cloud tab is down, but the rest of the search are
> > still
> > > working.
> > >
> > > Regards,
> > > Edwin
> > >
> > >
> > >
> > > On 6 July 2015 at 20:59, Shawn Heisey <ap...@elyograg.org> wrote:
> > >
> > >> On 7/5/2015 10:17 PM, Zheng Lin Edwin Yeo wrote:
> > >> > I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.
> > >> >
> > >> > Whenever I tried to start Solr using these command, the Solr servers
> > gets
> > >> > started, but none of the cores is actually loaded.
> > >> > - bin\solr.cmd start -cloud -z localhost:2181
> > >> > - bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181
> > >> >
> > >> > I can only get the core to be loaded when I use the following command
> > >> >  - bin\solr.cmd -e cloud -z localhost:2181
> > >>
> > >> After you have created the cloud example, you need different commands to
> > >> restart or start those nodes.  See the "Restarting Nodes" section of
> > >> this page for some help with doing this:
> > >>
> > >>
> > >>
> > https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud
> > >>
> > >> Thanks,
> > >> Shawn
> > >>
> > >>
> >

Re: Problems with loading core when starting Solr 5.2.1

Posted by Zheng Lin Edwin Yeo <ed...@gmail.com>.
Thanks Erick for the info.

So mine should be running on external ZooKeeper, since I'm using  "-
bin\solr.cmd
-e cloud -z localhost:2181" and not -DzkRun, and Solr is able to read the
updated the configuration after I update it in the external ZooKeeper.

Regards,
Edwin


On 7 July 2015 at 11:17, Erick Erickson <er...@gmail.com> wrote:

> A Zookeeper quorum is not necessary for searching. Well,
> that's stating it a little too strongly. A Solr cluster will do its
> best to search given the last state of the cluster each
> Solr node got from Zookeeper.
>
> You will not be able to index without a quorum though.
>
> bq: How do I check if my Solr is running based on the external ZooKeeper
> or the
> embedded ZooKeeper in Solr 5.2.1?
>
> You have to specify the -DzkRun to run embedded ZK. If you didn't do that,
> it's not running.
>
> Best,
> Erick
>
> On Mon, Jul 6, 2015 at 8:13 PM, Zheng Lin Edwin Yeo
> <ed...@gmail.com> wrote:
> > How do I check if my Solr is running based on the external ZooKeeper or
> the
> > embedded ZooKeeper in Solr 5.2.1?
> >
> > Currently I can still do a search even though I've shut down 2 out of 3
> > ZooKeeper. Only the Cloud tab is down, but the rest of the search are
> still
> > working.
> >
> > Regards,
> > Edwin
> >
> >
> >
> > On 6 July 2015 at 20:59, Shawn Heisey <ap...@elyograg.org> wrote:
> >
> >> On 7/5/2015 10:17 PM, Zheng Lin Edwin Yeo wrote:
> >> > I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.
> >> >
> >> > Whenever I tried to start Solr using these command, the Solr servers
> gets
> >> > started, but none of the cores is actually loaded.
> >> > - bin\solr.cmd start -cloud -z localhost:2181
> >> > - bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181
> >> >
> >> > I can only get the core to be loaded when I use the following command
> >> >  - bin\solr.cmd -e cloud -z localhost:2181
> >>
> >> After you have created the cloud example, you need different commands to
> >> restart or start those nodes.  See the "Restarting Nodes" section of
> >> this page for some help with doing this:
> >>
> >>
> >>
> https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud
> >>
> >> Thanks,
> >> Shawn
> >>
> >>
>

Re: Problems with loading core when starting Solr 5.2.1

Posted by Erick Erickson <er...@gmail.com>.
A Zookeeper quorum is not necessary for searching. Well,
that's stating it a little too strongly. A Solr cluster will do its
best to search given the last state of the cluster each
Solr node got from Zookeeper.

You will not be able to index without a quorum though.

bq: How do I check if my Solr is running based on the external ZooKeeper or the
embedded ZooKeeper in Solr 5.2.1?

You have to specify the -DzkRun to run embedded ZK. If you didn't do that,
it's not running.

Best,
Erick

On Mon, Jul 6, 2015 at 8:13 PM, Zheng Lin Edwin Yeo
<ed...@gmail.com> wrote:
> How do I check if my Solr is running based on the external ZooKeeper or the
> embedded ZooKeeper in Solr 5.2.1?
>
> Currently I can still do a search even though I've shut down 2 out of 3
> ZooKeeper. Only the Cloud tab is down, but the rest of the search are still
> working.
>
> Regards,
> Edwin
>
>
>
> On 6 July 2015 at 20:59, Shawn Heisey <ap...@elyograg.org> wrote:
>
>> On 7/5/2015 10:17 PM, Zheng Lin Edwin Yeo wrote:
>> > I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.
>> >
>> > Whenever I tried to start Solr using these command, the Solr servers gets
>> > started, but none of the cores is actually loaded.
>> > - bin\solr.cmd start -cloud -z localhost:2181
>> > - bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181
>> >
>> > I can only get the core to be loaded when I use the following command
>> >  - bin\solr.cmd -e cloud -z localhost:2181
>>
>> After you have created the cloud example, you need different commands to
>> restart or start those nodes.  See the "Restarting Nodes" section of
>> this page for some help with doing this:
>>
>>
>> https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud
>>
>> Thanks,
>> Shawn
>>
>>

Re: Problems with loading core when starting Solr 5.2.1

Posted by Zheng Lin Edwin Yeo <ed...@gmail.com>.
How do I check if my Solr is running based on the external ZooKeeper or the
embedded ZooKeeper in Solr 5.2.1?

Currently I can still do a search even though I've shut down 2 out of 3
ZooKeeper. Only the Cloud tab is down, but the rest of the search are still
working.

Regards,
Edwin



On 6 July 2015 at 20:59, Shawn Heisey <ap...@elyograg.org> wrote:

> On 7/5/2015 10:17 PM, Zheng Lin Edwin Yeo wrote:
> > I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.
> >
> > Whenever I tried to start Solr using these command, the Solr servers gets
> > started, but none of the cores is actually loaded.
> > - bin\solr.cmd start -cloud -z localhost:2181
> > - bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181
> >
> > I can only get the core to be loaded when I use the following command
> >  - bin\solr.cmd -e cloud -z localhost:2181
>
> After you have created the cloud example, you need different commands to
> restart or start those nodes.  See the "Restarting Nodes" section of
> this page for some help with doing this:
>
>
> https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud
>
> Thanks,
> Shawn
>
>

Re: Problems with loading core when starting Solr 5.2.1

Posted by Shawn Heisey <ap...@elyograg.org>.
On 7/5/2015 10:17 PM, Zheng Lin Edwin Yeo wrote:
> I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.
> 
> Whenever I tried to start Solr using these command, the Solr servers gets
> started, but none of the cores is actually loaded.
> - bin\solr.cmd start -cloud -z localhost:2181
> - bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181
> 
> I can only get the core to be loaded when I use the following command
>  - bin\solr.cmd -e cloud -z localhost:2181

After you have created the cloud example, you need different commands to
restart or start those nodes.  See the "Restarting Nodes" section of
this page for some help with doing this:

https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud

Thanks,
Shawn


Re: Problems with loading core when starting Solr 5.2.1

Posted by Upayavira <uv...@odoko.co.uk>.
Use bin/solr create to make a new collection.

Upayavira

On Mon, Jul 6, 2015, at 05:17 AM, Zheng Lin Edwin Yeo wrote:
> Hi,
> 
> I've just migrated to Solr 5.2.1 with external ZooKeeper 3.4.6.
> 
> Whenever I tried to start Solr using these command, the Solr servers gets
> started, but none of the cores is actually loaded.
> - bin\solr.cmd start -cloud -z localhost:2181
> - bin\solr.cmd -cloud -p 8983 -s server\solr -z localhost:2181
> 
> I can only get the core to be loaded when I use the following command
>  - bin\solr.cmd -e cloud -z localhost:2181
> 
> However, this command is actually the step by step guide to create a new
> collection, and I don't have to create a new collection each time I start
> Solr.
> 
> Is there anything wrong with my first two commands?
> 
> Regards,
> Edwin