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 satya swaroop <ss...@gmail.com> on 2010/09/20 15:11:38 UTC
SolrCloud new....
Hi all,
I am having 4 instances of solr in 4 systems.Each system has a
single instance of solr.. I want the result from all these servers. I came
to know using of solrcloud. I read about it and worked on the example and it
was working as given in wiki.
I am using solr 1.4 and apache tomcat. In order to implement cloud in the
solr trunk wat procedure should be followed.
1)Should i copy the libraries from cloud to trunk???
2)should i keep the cloud module in every system???
3) I am not using any cores in the solr. It is a single solr in every
system.can solrcloud support it??
4) the example is given in jetty.Is it the same way to make it in tomcat???
Regards,
satya
Re: SolrCloud new....
Posted by asia <as...@lntinfotech.com>.
Hello,
even I am working on the same,I have tried with the wiki example but I am
getting errors.I want to use zookeeper with solrj in eclipse using
tomcat.Need little help.as to how to integrate zookeeper in eclipse for
solrcloud.
--
View this message in context: http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p3876928.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: SolrCloud new....
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hi Stijn,
Yes, there is a link to Login or create account either on top or bottom of every
page.
Please do edit it directly if you see things that are incorrect or outdated. If
you share them in email, I'm 99.9% sure nobody will take the time to transfer
that to the Wiki.
If you are afraid to mess up something on that page, you could simply append to
the end of it and clearly label it as "I'm not sure, but this is what I did and
what worked for me as of YYYY-MM-DD". That will help people who follow
instructions without messing up anything existing.
Thanks!
Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/
----- Original Message ----
> From: Stijn Vanhoorelbeke <st...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Sun, February 20, 2011 2:09:58 PM
> Subject: Re: SolrCloud new....
>
>
> Hi,
>
> Can I edit the SolrCloud page?
> I never thought about it - but since it's a wiki -- everyone can edit,
> right?
>
> For the moment I'll not write stuff onto it - but if you need some help, I
> can share you some of my ( little, but some ) experience.
>
> 2011/2/20 Otis Gospodnetic-2 [via Lucene] <
> ml-node+2538747-751169843-301058@n3.nabble.com>
>
> > Hi Stijn,
> >
> > Thank you for sharing this.
> > Would it at all be possible for you to update the parts of SolrCloud page
> > that
> > are incorrect and that you figured out or add anything new that's not on
> > that
> > page yet?
> >
> > Thanks!
> >
> > Otis
> > ----
> > Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> > Lucene ecosystem search :: http://search-lucene.com/
> >
> >
> >
> > ----- Original Message ----
> >
> > > From: Stijn Vanhoorelbeke <[hidden
>email]<http://user/SendEmail.jtp?type=node&node=2538747&i=0>>
> >
> > > To: [hidden email]<http://user/SendEmail.jtp?type=node&node=2538747&i=1>
> > > Sent: Fri, February 18, 2011 6:42:10 AM
> > > Subject: Re: SolrCloud new....
> > >
> > >
> > > Hi,
> > >
> > > I'm busy doing the exact same thing.
> > > I figured things out - all by myself - the wiki page is a nice 'fist
> > view',
> > > but doesn't goes in dept...
> > >
> > > Lets go ahead:
> > > 1)Should i copy the libraries from cloud to trunk???
> > > 2)should i keep the cloud module in every system???
> > >
> > > A: Yes, you should.
> > > You should get yourself the latest dev trunk and compile it.
> > >
> > > The steps I followed:
> > > + grap latest trunk & build solr
> > > + backup all solr config files
> > > + in dir tomcat6/webapps/ remove the dir 'solr'
> > > + copy the new solr.war ( which you build in first step ) to
> > tomcat6/webapps
> > > + On your Solr_home/conf dir solrconfig.xml need to be replaced by a new
> > one
> > > ( you take from example dir of your build) -- some other config files (
> > like
> > > schema.xml ) you may keep using the old ones.
> > > + Adapt the new files to represent the old configuration
> > > + restart tomcat and it will install new version of solr
> > >
> > > It seems the index isn't compatible - so you need to flush your whole
> > index
> > > and re-index all data.
> > > And finally you have your solr system back with zookeeper integrated in
> > > /admin zone :)
> > >
> > >
> > > 3) I am not using any cores in the solr. It is a single solr in every
> > > system.can solrcloud support it??
> > >
> > > A: Actually you are using one cor - so gives no problem.
> > > But be sure to check you have solr.xml file in your solr_home dir.
> > > This file just mentions all cores - in your case just one core;
> > > ( you can find examples of layout of this file easily on
> > > http://wiki.apache.org/solr/CoreAdmin )
> > >
> > > 4) the example is given in jetty.Is it the same way to make it in
> > tomcat???
> > >
> > > A: Right now - it is the same way.
> > > You have to edit your /etc/init.d/tomcat6 startup script. In the start)
> > > section you can specify all the JAVA_OPTS ( the ones the solrcloud wiki
> > > mentions).
> > >
> > > Be sure to set following one:
> > > export JAVA_OPTS="$JAVA_OPTS -DhostPort=8080" ( if tomcat runs on port
> > 8080
> > > )
> > >
> > > At first I didn't --> my zookeeper pointed to standard 8983 port, which
> >
> > > gave errors.
> > >
> > >
> > > In the above I gave you a quick peak how to get the SolrCloud feature.
> > > In above the Zookeeper is embedded in one of your solr machines. If you
> > > don't want this you may place zookeeper on a different machine ( like
> > I'm
> > > doing right now).
> > >
> > > If you need more help - you can contact me.
> > > Stijn Vanhoorelbeke,
> > >
> > >
> > > --
> > > View this message in context:
> >
>>http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2526080.html<http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2526080.html?by-user=t>
>
> > > Sent from the Solr - User mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> > http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2538747.html
> > To unsubscribe from SolrCloud new...., click
>here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1528872&code=c3Rpam4udmFuaG9vcmVsYmVrZUBnbWFpbC5jb218MTUyODg3MnwxNjg2NDg1MjQ0>.
>
> >
> >
>
> --
> View this message in context:
>http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2540432.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Re: SolrCloud new....
Posted by Stijn Vanhoorelbeke <st...@gmail.com>.
Hi,
Can I edit the SolrCloud page?
I never thought about it - but since it's a wiki -- everyone can edit,
right?
For the moment I'll not write stuff onto it - but if you need some help, I
can share you some of my ( little, but some ) experience.
2011/2/20 Otis Gospodnetic-2 [via Lucene] <
ml-node+2538747-751169843-301058@n3.nabble.com>
> Hi Stijn,
>
> Thank you for sharing this.
> Would it at all be possible for you to update the parts of SolrCloud page
> that
> are incorrect and that you figured out or add anything new that's not on
> that
> page yet?
>
> Thanks!
>
> Otis
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Lucene ecosystem search :: http://search-lucene.com/
>
>
>
> ----- Original Message ----
>
> > From: Stijn Vanhoorelbeke <[hidden email]<http://user/SendEmail.jtp?type=node&node=2538747&i=0>>
>
> > To: [hidden email]<http://user/SendEmail.jtp?type=node&node=2538747&i=1>
> > Sent: Fri, February 18, 2011 6:42:10 AM
> > Subject: Re: SolrCloud new....
> >
> >
> > Hi,
> >
> > I'm busy doing the exact same thing.
> > I figured things out - all by myself - the wiki page is a nice 'fist
> view',
> > but doesn't goes in dept...
> >
> > Lets go ahead:
> > 1)Should i copy the libraries from cloud to trunk???
> > 2)should i keep the cloud module in every system???
> >
> > A: Yes, you should.
> > You should get yourself the latest dev trunk and compile it.
> >
> > The steps I followed:
> > + grap latest trunk & build solr
> > + backup all solr config files
> > + in dir tomcat6/webapps/ remove the dir 'solr'
> > + copy the new solr.war ( which you build in first step ) to
> tomcat6/webapps
> > + On your Solr_home/conf dir solrconfig.xml need to be replaced by a new
> one
> > ( you take from example dir of your build) -- some other config files (
> like
> > schema.xml ) you may keep using the old ones.
> > + Adapt the new files to represent the old configuration
> > + restart tomcat and it will install new version of solr
> >
> > It seems the index isn't compatible - so you need to flush your whole
> index
> > and re-index all data.
> > And finally you have your solr system back with zookeeper integrated in
> > /admin zone :)
> >
> >
> > 3) I am not using any cores in the solr. It is a single solr in every
> > system.can solrcloud support it??
> >
> > A: Actually you are using one cor - so gives no problem.
> > But be sure to check you have solr.xml file in your solr_home dir.
> > This file just mentions all cores - in your case just one core;
> > ( you can find examples of layout of this file easily on
> > http://wiki.apache.org/solr/CoreAdmin )
> >
> > 4) the example is given in jetty.Is it the same way to make it in
> tomcat???
> >
> > A: Right now - it is the same way.
> > You have to edit your /etc/init.d/tomcat6 startup script. In the start)
> > section you can specify all the JAVA_OPTS ( the ones the solrcloud wiki
> > mentions).
> >
> > Be sure to set following one:
> > export JAVA_OPTS="$JAVA_OPTS -DhostPort=8080" ( if tomcat runs on port
> 8080
> > )
> >
> > At first I didn't --> my zookeeper pointed to standard 8983 port, which
>
> > gave errors.
> >
> >
> > In the above I gave you a quick peak how to get the SolrCloud feature.
> > In above the Zookeeper is embedded in one of your solr machines. If you
> > don't want this you may place zookeeper on a different machine ( like
> I'm
> > doing right now).
> >
> > If you need more help - you can contact me.
> > Stijn Vanhoorelbeke,
> >
> >
> > --
> > View this message in context:
> >http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2526080.html<http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2526080.html?by-user=t>
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2538747.html
> To unsubscribe from SolrCloud new...., click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1528872&code=c3Rpam4udmFuaG9vcmVsYmVrZUBnbWFpbC5jb218MTUyODg3MnwxNjg2NDg1MjQ0>.
>
>
--
View this message in context: http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2540432.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: SolrCloud new....
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hi Stijn,
Thank you for sharing this.
Would it at all be possible for you to update the parts of SolrCloud page that
are incorrect and that you figured out or add anything new that's not on that
page yet?
Thanks!
Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/
----- Original Message ----
> From: Stijn Vanhoorelbeke <st...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Fri, February 18, 2011 6:42:10 AM
> Subject: Re: SolrCloud new....
>
>
> Hi,
>
> I'm busy doing the exact same thing.
> I figured things out - all by myself - the wiki page is a nice 'fist view',
> but doesn't goes in dept...
>
> Lets go ahead:
> 1)Should i copy the libraries from cloud to trunk???
> 2)should i keep the cloud module in every system???
>
> A: Yes, you should.
> You should get yourself the latest dev trunk and compile it.
>
> The steps I followed:
> + grap latest trunk & build solr
> + backup all solr config files
> + in dir tomcat6/webapps/ remove the dir 'solr'
> + copy the new solr.war ( which you build in first step ) to tomcat6/webapps
> + On your Solr_home/conf dir solrconfig.xml need to be replaced by a new one
> ( you take from example dir of your build) -- some other config files ( like
> schema.xml ) you may keep using the old ones.
> + Adapt the new files to represent the old configuration
> + restart tomcat and it will install new version of solr
>
> It seems the index isn't compatible - so you need to flush your whole index
> and re-index all data.
> And finally you have your solr system back with zookeeper integrated in
> /admin zone :)
>
>
> 3) I am not using any cores in the solr. It is a single solr in every
> system.can solrcloud support it??
>
> A: Actually you are using one cor - so gives no problem.
> But be sure to check you have solr.xml file in your solr_home dir.
> This file just mentions all cores - in your case just one core;
> ( you can find examples of layout of this file easily on
> http://wiki.apache.org/solr/CoreAdmin )
>
> 4) the example is given in jetty.Is it the same way to make it in tomcat???
>
> A: Right now - it is the same way.
> You have to edit your /etc/init.d/tomcat6 startup script. In the start)
> section you can specify all the JAVA_OPTS ( the ones the solrcloud wiki
> mentions).
>
> Be sure to set following one:
> export JAVA_OPTS="$JAVA_OPTS -DhostPort=8080" ( if tomcat runs on port 8080
> )
>
> At first I didn't --> my zookeeper pointed to standard 8983 port, which
> gave errors.
>
>
> In the above I gave you a quick peak how to get the SolrCloud feature.
> In above the Zookeeper is embedded in one of your solr machines. If you
> don't want this you may place zookeeper on a different machine ( like I'm
> doing right now).
>
> If you need more help - you can contact me.
> Stijn Vanhoorelbeke,
>
>
> --
> View this message in context:
>http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2526080.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Re: SolrCloud new....
Posted by Stijn Vanhoorelbeke <st...@gmail.com>.
Hi,
I'm busy doing the exact same thing.
I figured things out - all by myself - the wiki page is a nice 'fist view',
but doesn't goes in dept...
Lets go ahead:
1)Should i copy the libraries from cloud to trunk???
2)should i keep the cloud module in every system???
A: Yes, you should.
You should get yourself the latest dev trunk and compile it.
The steps I followed:
+ grap latest trunk & build solr
+ backup all solr config files
+ in dir tomcat6/webapps/ remove the dir 'solr'
+ copy the new solr.war ( which you build in first step ) to tomcat6/webapps
+ On your Solr_home/conf dir solrconfig.xml need to be replaced by a new one
( you take from example dir of your build) -- some other config files ( like
schema.xml ) you may keep using the old ones.
+ Adapt the new files to represent the old configuration
+ restart tomcat and it will install new version of solr
It seems the index isn't compatible - so you need to flush your whole index
and re-index all data.
And finally you have your solr system back with zookeeper integrated in
/admin zone :)
3) I am not using any cores in the solr. It is a single solr in every
system.can solrcloud support it??
A: Actually you are using one cor - so gives no problem.
But be sure to check you have solr.xml file in your solr_home dir.
This file just mentions all cores - in your case just one core;
( you can find examples of layout of this file easily on
http://wiki.apache.org/solr/CoreAdmin )
4) the example is given in jetty.Is it the same way to make it in tomcat???
A: Right now - it is the same way.
You have to edit your /etc/init.d/tomcat6 startup script. In the start)
section you can specify all the JAVA_OPTS ( the ones the solrcloud wiki
mentions).
Be sure to set following one:
export JAVA_OPTS="$JAVA_OPTS -DhostPort=8080" ( if tomcat runs on port 8080
)
At first I didn't --> my zookeeper pointed to standard 8983 port, which
gave errors.
In the above I gave you a quick peak how to get the SolrCloud feature.
In above the Zookeeper is embedded in one of your solr machines. If you
don't want this you may place zookeeper on a different machine ( like I'm
doing right now).
If you need more help - you can contact me.
Stijn Vanhoorelbeke,
--
View this message in context: http://lucene.472066.n3.nabble.com/SolrCloud-new-tp1528872p2526080.html
Sent from the Solr - User mailing list archive at Nabble.com.