Re: How to start solr in solr cloud mode using external zookeeper ?
yes it might, but I don't wants to depend on servlet container because after few release solr will not support any servlet container. So i am sticking with the command line utilities. With Regards Aman Tandon On Fri, Mar 6, 2015 at 3:58 PM, Rajesh Hazari wrote: > zkhost=hostnames, > port=some port > variables in your solr.xml should work? > I have tested this with tomcat not with jetty, this stays with your config. > > Rajesh. > On Mar 5, 2015 9:20 PM, "Aman Tandon" wrote: > > > Thanks shamik :) > > > > With Regards > > Aman Tandon > > > > On Fri, Mar 6, 2015 at 3:30 AM, shamik wrote: > > > > > The other way you can do that is to specify the startup parameters in > > > solr.in.sh. > > > > > > Example : > > > > > > SOLR_MODE=solrcloud > > > > > > ZK_HOST="zoohost1:2181,zoohost2:2181,zoohost3:2181" > > > > > > SOLR_PORT=4567 > > > > > > You can simply start solr by running "./solr start" > > > > > > > > > > > > -- > > > View this message in context: > > > > > > http://lucene.472066.n3.nabble.com/How-to-start-solr-in-solr-cloud-mode-using-external-zookeeper-tp4190630p4191286.html > > > Sent from the Solr - User mailing list archive at Nabble.com. > > > > > >
SpellCheck component query
Hello, I have enabled the Spellcheck component in Solr, which gives me spelling suggestions. However, I would like those suggestions to be applied in the same select request handler to retrieve additional results based on the suggestions. How can this be achieved with Solr? Regards, Ashish
Re: Help needed to understand zookeeper in solrcloud
Thanks svante for clearing the doubt. With Regards Aman Tandon On Thu, Mar 5, 2015 at 2:15 PM, svante karlsson wrote: > The network will "only" split if you get errors on your network hardware. > (or fiddle with iptables) Let's say you placed your zookeepers in separate > racks and someone pulls network cable between them - that will leave you > with 5 working servers but they can't reach each other. This is "split > brain scenario". > > >Are they guaranteed to split 4/0 > Yes. A node failure will not partition the network. > > > any odd number - it could be 21 even > Since all write a synchronous you don't want to use a too large number of > zookeepers since that would slow down the cluster. Use a reasonable number > to reach your SLA. (3 or 5 are common choices) > > >and from a single failure you drop to an even number - then there is the > danger of NOT getting quorum. > No, se above. > > BUT, if you first lose most of your nodes due to a network partition and > then lose another due to node failure - then you are out of quorum. > > > /svante > > > > 2015-03-05 9:29 GMT+01:00 Julian Perry : > > > > > I start out with 5 zk's. All good. > > > > One zk fails - I'm left with four. Are they guaranteed > > to split 4/0 or 3/1 - because if they split 2/2 I'm screwed, > > right? > > > > Surely to start with 5 zk's (or in fact any odd number - it > > could be 21 even), and from a single failure you drop to an > > even number - then there is the danger of NOT getting quorum. > > > > So ... I can only assume that there is a mechanism in place > > inside zk to guarantee this cannot happen, right? > > > > -- > > Cheers > > Jules. > > > > > > > > On 05/03/2015 06:47, svante karlsson wrote: > > > >> Yes, as long as it is three (the majority of 5) or more. > >> > >> This is why there is no point of having a 4 node cluster. This would > also > >> require 3 nodes for majority thus giving it the fault tolerance of a 3 > >> node > >> cluster but slower and more expensive. > >> > >> > >> > >> 2015-03-05 7:41 GMT+01:00 Aman Tandon : > >> > >> Thanks svante. > >>> > >>> What if in the cluster of 5 zookeeper only 1 zookeeper goes down, will > >>> zookeeper election can occur with 4 / even number of zookeepers alive? > >>> > >>> With Regards > >>> Aman Tandon > >>> > >>> On Tue, Mar 3, 2015 at 6:35 PM, svante karlsson wrote: > >>> > >>> synchronous update of state and a requirement of more than half the > zookeepers alive (and in sync) this makes it impossible to have a > "split > brain" situation ie when you partition a network and get let's say 3 > > >>> alive > >>> > on one side and 2 on the other. > > In this case the 2 node networks stops serving request since it's not > in > majority. > > > > > > > > > 2015-03-03 13:15 GMT+01:00 Aman Tandon : > > But how they handle the failure? > > > > With Regards > > Aman Tandon > > > > On Tue, Mar 3, 2015 at 5:17 PM, O. Klein wrote: > > > > Zookeeper requires a majority of servers to be available. For > >> > > example: > >>> > Five > > > >> machines ZooKeeper can handle the failure of two machines. That's > why > >> > > odd > > > numbers are recommended. > >> > > >
Re: Calling solr Page with search query
Hi Jochen, As per your need i understand that, you want to show the open the new page when user search query on home page and same query should appear on search page along with search result. If i am right, then you can open another page using JavaScript and you can use jquery to call the solr url returning the results of user query and get the data in json format, parse the data and show it on search page. With Regards Aman Tandon On Fri, Mar 6, 2015 at 8:11 PM, Jochen Lenz wrote: > Hello, > i'm looking for a solution for the following situation: > I have a website consisting of two sites. > One site is called "home" and one is called "search". > On the search site i have embeded solr via iframe. > On the home site there should be a search field. > When the search field is fired it should open the search site with solr > showing the search query and result (it should look like as if i would have > used the search field directly on the search site). > I would be very thankfull for any hints in connecting these parts! > Regards > Jochen >
best way to change configuration file of a collection
Hi, Please tell me what is best way to apply configuration changes in solr cloud and how to do that. Thanks in advance. With Regards Aman Tandon
test cases for solr cloud
Hi, Please suggest me what should be the tests which i should run to check the availability, query time, etc in my solr cloud setup. With Regards Aman Tandon
Re: best way to change configuration file of a collection
ignore this mail.. With Regards Aman Tandon On Sat, Mar 7, 2015 at 9:49 PM, Aman Tandon wrote: > Hi, > > Please tell me what is best way to apply configuration changes in solr > cloud and how to do that. > > Thanks in advance. > > With Regards > Aman Tandon >
how to change configurations in solrcloud setup
Hi, Please tell me what is best way to apply configuration changes in solr cloud and how to do that. Thanks in advance. With Regards Aman Tandon
Re: Calling solr Page with search query
On 3/7/2015 8:36 AM, Aman Tandon wrote: > As per your need i understand that, you want to show the open the new page > when user search query on home page and same query should appear on search > page along with search result. > > If i am right, then you can open another page using JavaScript and you can > use jquery to call the solr url returning the results of user query and get > the data in json format, parse the data and show it on search page. Assuming you're talking about javascript in the browser, this design should be avoided. It requires direct access to Solr from the user's browser. If that access is granted, and an intelligent proxy is not used in front of Solr that can detect and deny any attempt to change the index or access the admin UI, the end user (presumably the entire Internet) will be able to delete or change the index. Even if an intelligent proxy is used, the user might be able to construct denial of service queries that will make the Solr server incapable of serving legitimate traffic. It is always better to keep Solr firewalled from user access and query it from within a web application that only runs on the webserver. If access to this application (and the Solr server) will be restricted by a firewall to only a small group of users that can be trusted, then this design might be OK. Thanks, Shawn
Re: Calling solr Page with search query
Thank you so much shawn for correcting me. Yes we should use some firewall to avoid direct solr server access from application. With Regards Aman Tandon On Sat, Mar 7, 2015 at 9:59 PM, Shawn Heisey wrote: > On 3/7/2015 8:36 AM, Aman Tandon wrote: > > As per your need i understand that, you want to show the open the new > page > > when user search query on home page and same query should appear on > search > > page along with search result. > > > > If i am right, then you can open another page using JavaScript and you > can > > use jquery to call the solr url returning the results of user query and > get > > the data in json format, parse the data and show it on search page. > > Assuming you're talking about javascript in the browser, this design > should be avoided. It requires direct access to Solr from the user's > browser. > > If that access is granted, and an intelligent proxy is not used in front > of Solr that can detect and deny any attempt to change the index or > access the admin UI, the end user (presumably the entire Internet) will > be able to delete or change the index. Even if an intelligent proxy is > used, the user might be able to construct denial of service queries that > will make the Solr server incapable of serving legitimate traffic. > > It is always better to keep Solr firewalled from user access and query > it from within a web application that only runs on the webserver. > > If access to this application (and the Solr server) will be restricted > by a firewall to only a small group of users that can be trusted, then > this design might be OK. > > Thanks, > Shawn > >
Solr packages in Apache BigTop.
Hi Solr. I work on the apache bigtop project, and am interested in integrating it deeper with Solr, for example, for testing spark / solr integration cases. Is anyone in the Solr community interested in collborating on testing releases with us and maintaining Solr packagins in bigtop (with our help of course) ? The advantage here is that we can synergize efforts: When new SOLR releases come out, we can test them in bigtop to gaurantee that there are rpm/deb packages which work well with the hadoop ecosystem. For those that don't know, bigtop is the upstream apache bigdata packaging project, we build hadoop, spark, solr, hbase and so on in rpm/deb format, and supply puppet provisioners along with vagrant recipse for testing. -- jay vyas