Re: CloudSolrServer set http request timeout

2017-09-21 Thread Vincenzo D'Amore
Thanks for the suggestion, it's working like a charm. Ciao, Vincenzo > On 21 Sep 2017, at 19:51, Jason Gerlowski wrote: > > Hi Vincenzo, > > Have you tried setting the read/socket timeout on your client? > CloudSolrServer uses a LBHttpSolrServer under the hood, which

Re: CloudSolrServer set http request timeout

2017-09-21 Thread Vincenzo D'Amore
Thanks Jason, I'll give it a try immediately. Ciao, Vincenzo -- mobile: 3498513251 skype: free.dev > On 21 Sep 2017, at 19:51, Jason Gerlowski wrote: > > Hi Vincenzo, > > Have you tried setting the read/socket timeout on your client? > CloudSolrServer uses a LBHttpSo

Re: CloudSolrServer set http request timeout

2017-09-21 Thread Jason Gerlowski
Hi Vincenzo, Have you tried setting the read/socket timeout on your client? CloudSolrServer uses a LBHttpSolrServer under the hood, which you can get with the getLBServer method (https://lucene.apache.org/solr/4_1_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrServer.html#getLbServer

CloudSolrServer set http request timeout

2017-09-21 Thread Vincenzo D'Amore
Hi, I have a huge problem with few queries in SolrCloud 4.8.1 that hangs the client. Actually I'm unable to understand even if the cluster really receives the requests. How can I set a timeout when Solrj client wait too much ? Best regards, Vincenzo -- Vincenzo D'Amore email: v.dam...@gmail.c

Re: Create too many zookeeper connections when recreate CloudSolrServer instance

2017-07-20 Thread wg85907
-recreate-CloudSolrServer-instance-tp4346040p4346944.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Create too many zookeeper connections when recreate CloudSolrServer instance

2017-07-18 Thread Walter Underwood
-too-many-zookeeper-connections-when-recreate-CloudSolrServer-instance-tp4346040p4346528.html > Sent from the Solr - User mailing list archive at Nabble.com.

Re: Create too many zookeeper connections when recreate CloudSolrServer instance

2017-07-18 Thread Shawn Heisey
On 7/17/2017 2:48 AM, wg85907 wrote: > Thanks for your detail explanation. The reason I want to shutdown the > CloudSolrServer instance and create a new one is that I have concern that if > it can successfully reconnect to Zookeeper server if Zookeeper cluster has > so

Re: Create too many zookeeper connections when recreate CloudSolrServer instance

2017-07-18 Thread wg85907
always be the last choice. Regards, Geng, Wei -- View this message in context: http://lucene.472066.n3.nabble.com/Create-too-many-zookeeper-connections-when-recreate-CloudSolrServer-instance-tp4346040p4346528.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Create too many zookeeper connections when recreate CloudSolrServer instance

2017-07-17 Thread Walter Underwood
On Jul 17, 2017, at 1:48 AM, wg85907 wrote: > > Hi Shawn, >Thanks for your detail explanation. The reason I want to shutdown > the CloudSolrServer instance and create a new one is that I have concern > that if it can successfully reconnect to Zookeeper server if Zookeeper

Re: Create too many zookeeper connections when recreate CloudSolrServer instance

2017-07-17 Thread wg85907
Hi Shawn, Thanks for your detail explanation. The reason I want to shutdown the CloudSolrServer instance and create a new one is that I have concern that if it can successfully reconnect to Zookeeper server if Zookeeper cluster has some issue and reboot. I will do related test with version

Re: Create too many zookeeper connections when recreate CloudSolrServer instance

2017-07-14 Thread Shawn Heisey
On 7/14/2017 6:29 AM, wg85907 wrote: > I use Solr(4.10.2) as indexing tool. I use a singleton > CloudSolrServer instance to query Solr. When meet exception, for example > current Solr server not response, i will create a new CloudSolrServer > instance and shutdown the o

Create too many zookeeper connections when recreate CloudSolrServer instance

2017-07-14 Thread wg85907
Hi Community, I use Solr(4.10.2) as indexing tool. I use a singleton CloudSolrServer instance to query Solr. When meet exception, for example current Solr server not response, i will create a new CloudSolrServer instance and shutdown the old one. We have many query threads that share the

Re: CloudSolrServer instead of httpSolrServer

2016-07-30 Thread Erick Erickson
ult. Plus, CloudSolrClient will be aware of the status of the collection and compensate whenever nodes go up/down so you don't have to worry about that kind of error handling in your client. I'm assuming you're using 4.x, CloudSolrServer has been renamed CloudSolrClient in 5x and beyond.

CloudSolrServer instead of httpSolrServer

2016-07-30 Thread Naveen Pajjuri
Hi, While sending updates to solr cloud i randomly send updates to one of the node (in my cloud) directly using httpSolrServer. if i use cloudSolrServer (by passing zk ip's), instead of httpSolrServer can i expect any improvment in performance. my baisc question is how does updates propagate

Re: CloudSolrServer with multiple zookeeper cluster setup.

2016-07-06 Thread Erick Erickson
CloudSolrServer (and I'm assuming you're in the 4x code line, that's now CloudSolrClient) takes an ensemble, here are two examples: "host1:2181,host2:2181,host3:2181/mysolrchroot" "zoo1.example.com:2181,zoo2.example.com:2181,zoo3.example.com:2181" Best, Eri

CloudSolrServer with multiple zookeeper cluster setup.

2016-07-06 Thread Naveen Pajjuri
Hi, In our production we have a solr cloud setup with zookeeper cluster setup. I want to shift to CloudSolrServer from httpsolrserver is there any way to specify all the ip addresses of zookeeper machines while instantiating CloudSolrServer, so that i will have an automatic fallback mechanism. PS

Re: questions for the method "shutdown" of CloudSolrServer

2016-07-02 Thread Kent Mu
ureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) besides, we use the singleton pattern to create and get the CloudSolrS

Re: questions for the method "shutdown" of CloudSolrServer

2016-07-02 Thread Shawn Heisey
On 7/2/2016 2:29 AM, Kent Mu wrote: > this kind of method by create an instance with a LBHttpSolrServer does > not need to release LBHttpSolrServer and HttpClient?? The cloud client will only shutdown the LB client and its HttpClient if it was the one who created those resources. When they are c

questions for the method "shutdown" of CloudSolrServer

2016-07-02 Thread Kent Mu
hi all, I create a CloudSolrServer Connection by singleton pattern like this public synchronized static CloudSolrServer getSolrCloudReadServer() { if (reviewSolrCloudServer == null) { ModifiableSolrParams params = new ModifiableSolrParams(); params.set

questions for the method "shutdown" of CloudSolrServer

2016-07-01 Thread 穆 俊峰
hi all, I create a CloudSolrServer Connection by singleton pattern like this public synchronized static CloudSolrServer getSolrCloudReadServer() { if (reviewSolrCloudServer == null) { ModifiableSolrParams params = new ModifiableSolrParams(); params.set

Re: Question about CloudSolrServer

2016-06-09 Thread Naveen Pajjuri
Thanks *Shawn.* i was using older version of solrj. upgrading it to newer version worked. Thank you. On Thu, Jun 9, 2016 at 11:41 AM, Shawn Heisey wrote: > On 6/8/2016 11:44 PM, Naveen Pajjuri wrote: > > Trying to migrate from HttpSolrServer to CloudSolrServer. getting the >

Re: Question about CloudSolrServer

2016-06-08 Thread Shawn Heisey
On 6/8/2016 11:44 PM, Naveen Pajjuri wrote: > Trying to migrate from HttpSolrServer to CloudSolrServer. getting the > following exception while adding docs using CloudSolrServer. > > > org.apache.solr.common.SolrException: Unknown document router > '{na

Question about CloudSolrServer

2016-06-08 Thread Naveen Pajjuri
Hi, Trying to migrate from HttpSolrServer to CloudSolrServer. getting the following exception while adding docs using CloudSolrServer. org.apache.solr.common.SolrException: Unknown document router '{name=compositeId}' at org.apache.solr.common.cloud.DocRouter.getDocRouter(DocRout

RE: HttpSolrServer and CloudSolrServer

2015-04-18 Thread Vijay Bhoomireddy
Thanks Andrea and Erick. It helped my understanding. Thanks & Regards Vijay -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: 17 April 2015 17:27 To: solr-user@lucene.apache.org Subject: Re: HttpSolrServer and CloudSolrServer Additionally when inde

Re: HttpSolrServer and CloudSolrServer

2015-04-17 Thread Erick Erickson
Additionally when indexing, CloudSolrServer collects up the documents for each shard and routes them to the leader for that shard, moving that processing away from whatever node you happen so contact using HttpSolrServer. Finally, HttpSolrServer is a single point of failure if the node you point

Re: HttpSolrServer and CloudSolrServer

2015-04-17 Thread Andrea Gazzarini
If you're using SolrCloud then you should use CloudSolrServer as it is able to abstract / hide the interaction with the cluster. HttpSolrServer communicates directly with a Solr instance. Best, Andrea On 04/17/2015 10:59 AM, Vijay Bhoomireddy wrote: Hi All, Good Morning!!

HttpSolrServer and CloudSolrServer

2015-04-17 Thread Vijay Bhoomireddy
Hi All, Good Morning!! For SolrCloud deployment, for indexing data through SolrJ, which is the preferred / correct SolrServer class to use? HttpSolrServer of CloudSolrServer? In case both can be used, when to use which? Any help please. Thanks & Regards Vijay -- The content

Re: CloudSolrServer - Unknown type 19

2015-04-08 Thread Shawn Heisey
On 4/8/2015 6:30 AM, Chaushu, Shani wrote: > I tried to get the SolrJ in older version, but I'm using solr-spark package > and it fails with compilation errors probably because it uses function from > newer versions... > I can't find any solution... Looking at the github repo for spark-solr, I

RE: CloudSolrServer - Unknown type 19

2015-04-08 Thread Chaushu, Shani
com] Sent: Wednesday, April 08, 2015 14:56 To: solr-user@lucene.apache.org Subject: Re: CloudSolrServer - Unknown type 19 Hello Shani, Are you using SolrJ? Did you try using the same version of SolrJ (e.g v. 4.4 of SolrJ, if you're using Solr 4.4)? That's what generally worked for me. Kind r

Re: CloudSolrServer - Unknown type 19

2015-04-08 Thread Emre Sevinc
Hello Shani, Are you using SolrJ? Did you try using the same version of SolrJ (e.g v. 4.4 of SolrJ, if you're using Solr 4.4)? That's what generally worked for me. Kind regards, Emre Sevinç http://www.bigindustries.be/ On Wed, Apr 8, 2015 at 1:46 PM, Chaushu, Shani wrote: > i'm using solr 4.

CloudSolrServer - Unknown type 19

2015-04-08 Thread Chaushu, Shani
i'm using solr 4.4. the query request works fine but when i try to add doc into solr cloud (cloudSolrServer.request(updateRequest)) i get an error: Exception in thread "main" org.apache.solr.client.solrj.impl.CloudSolrServer$RouteException: Unknown type 19 at org.apache.solr.client.so

Re: CloudSolrServer : Could not find collection : gettingstarted

2015-03-19 Thread Adnan Yaqoob
Yes. Just before your email I was able to figure out. My project was set to user solrj 4.10.3 everything was working fine except cloud so I didn't noticed. After I switched to Solrj 5 it's working now Thanks everyone for supporting

Re: CloudSolrServer : Could not find collection : gettingstarted

2015-03-19 Thread Timothy Potter
Are you using a SolrJ client from 4.x to connect to a Solr 5 cluster? On Wed, Mar 18, 2015 at 1:32 PM, Adnan Yaqoob wrote: > I'm getting following exception while trying to upload document on > SolrCloud using CloudSolrServer. > > Exception in thread "main" org.apach

Re: CloudSolrServer : Could not find collection : gettingstarted

2015-03-19 Thread Chris Hostetter
: Chris, : Please find attached Dump nothing jumps out at me as looking odd, but i'm not the expert on this stuff either -- hopefully someone else can take a look. can you provide us with some more detials on what exactly you've done? you said ... : > : What steps did you follow to create th

Re: CloudSolrServer : Could not find collection : gettingstarted

2015-03-19 Thread Chris Hostetter
> On Wed, Mar 18, 2015 at 12:32 PM, Adnan Yaqoob wrote: : > > I'm getting following exception while trying to upload document on : > > SolrCloud using CloudSolrServer. : > > : > > Exception in thread "main" org.apache.solr.common.SolrException: : > >

Re: CloudSolrServer : Could not find collection : gettingstarted

2015-03-19 Thread Adnan Yaqoob
; actually create the collection. > > What steps did you follow to create the collection in SolrCloud? It's > possible you have the wrong ZK root somehow I suppose. > > Best, > Erick > > On Wed, Mar 18, 2015 at 12:32 PM, Adnan Yaqoob wrote: > > I'm ge

Re: CloudSolrServer : Could not find collection : gettingstarted

2015-03-18 Thread Erick Erickson
ZK root somehow I suppose. Best, Erick On Wed, Mar 18, 2015 at 12:32 PM, Adnan Yaqoob wrote: > I'm getting following exception while trying to upload document on > SolrCloud using CloudSolrServer. > > Exception in thread "main" org.apache.solr.common.SolrException: &g

CloudSolrServer : Could not find collection : gettingstarted

2015-03-18 Thread Adnan Yaqoob
I'm getting following exception while trying to upload document on SolrCloud using CloudSolrServer. Exception in thread "main" org.apache.solr.common.SolrException: *Could not find collection :* gettingstarted at org.apache.solr.common.cloud.ClusterState.getCollection(Cluste

Can we used CloudSolrServer for searching data

2015-03-18 Thread Adnan Yaqoob
I am using Solrcloud with zookeeper setup. but when I try to make query using following code snippet I get exception code: CloudSolrServer server = new CloudSolrServer("localhost:2181"); server.setDefaultCollection("gettingstarted"); server.connect(); SolrQuery q

Re: Question on CloudSolrServer API

2015-02-23 Thread Shalin Shekhar Mangar
trol the number of connections pooled > here in SolrJ Client? Also, what will be the default values for maximum > Connections and all. > > - Thanks > > On Thu, Feb 19, 2015 at 6:09 PM, Shalin Shekhar Mangar < > shalinman...@gmail.com> wrote: > > > No, you should reu

Re: Question on CloudSolrServer API

2015-02-23 Thread Manohar Sripada
the same CloudSolrServer instance for all requests. It > is a thread safe object. You could also create a static/common HttpClient > instance and pass it to the constructor of CloudSolrServer but even if you > don't, it will create one internally and use it for all requests so th

Re: Question on CloudSolrServer API

2015-02-19 Thread Shalin Shekhar Mangar
No, you should reuse the same CloudSolrServer instance for all requests. It is a thread safe object. You could also create a static/common HttpClient instance and pass it to the constructor of CloudSolrServer but even if you don't, it will create one internally and use it for all requests so

Question on CloudSolrServer API

2015-02-19 Thread Manohar Sripada
Hi All, I am using CloudSolrServer API of SolrJ library from my application to query Solr. Here, I am creating a new connection to Solr for every search that I am doing. Once I got the results I am closing the connection. Is this the correct way? How does Solr create connections internally? Does

Re: cloudsolrserver

2015-01-06 Thread tharpa
Thanks Anshum. If you say that "connect using CloudSolrServer" is more correct than saying, "connect to CloudSolrServer", I believe you. -- View this message in context: http://lucene.472066.n3.nabble.com/cloudsolrserver-tp4177724p4177728.html Sent from the Solr - User mai

Re: cloudsolrserver

2015-01-06 Thread Anshum Gupta
To get started, the ref guide should be helpful. https://cwiki.apache.org/confluence/display/solr/Using+SolrJ You just need to pass the Zk host string to the constructor and then use the server. Also, what do you mean by *connect to CloudSolrServer*? you mean connect using, right? On Tue, Jan

cloudsolrserver

2015-01-06 Thread tharpa
We are switching from a direct HTTP connection to use cloudsolrserver. I have looked and failed for an example of code for connecting to cloudsolrserver. Are there any tutorials or code examples? -- View this message in context: http://lucene.472066.n3.nabble.com/cloudsolrserver-tp4177724

RE: poor performance when connecting to CloudSolrServer(zkHosts) using solrJ

2015-01-01 Thread steve
bject: Re: poor performance when connecting to CloudSolrServer(zkHosts) > using solrJ > From: mohd.huss...@gmail.com > To: solr-user@lucene.apache.org > > My two cents, do check network connectivity. In past I remember changing > the zookeeper server name to actual IP improved the s

Re: poor performance when connecting to CloudSolrServer(zkHosts) using solrJ

2015-01-01 Thread Mohmed Hussain
On 12/29/2014 6:52 PM, zhangjia...@dcits.com wrote: > > I setups a SolrCloud, and code a simple solrJ program to query solr > > data as below, but it takes about 40 seconds to new CloudSolrServer > > instance,less than 100 miliseconds is acceptable. what is going on when >

Re: poor performance when connecting to CloudSolrServer(zkHosts) using solrJ

2014-12-29 Thread Shawn Heisey
On 12/29/2014 6:52 PM, zhangjia...@dcits.com wrote: > I setups a SolrCloud, and code a simple solrJ program to query solr > data as below, but it takes about 40 seconds to new CloudSolrServer > instance,less than 100 miliseconds is acceptable. what is going on when new > CloudSol

poor performance when connecting to CloudSolrServer(zkHosts) using solrJ

2014-12-29 Thread zhangjianad
hi, I setups a SolrCloud, and code a simple solrJ program to query solr data as below, but it takes about 40 seconds to new CloudSolrServer instance,less than 100 miliseconds is acceptable. what is going on when new CloudSolrServer? and how to fix this issue? String zkHost

Re: CloudSolrServer, concurrency and too many connections

2014-12-10 Thread Greg Solovyev
This was a user error. My code was re-instantiating CloudSolrServer for each request and never calling CloudSolrServer::shutdown(). Thanks, Greg - Original Message - From: "Greg Solovyev" To: solr-user@lucene.apache.org Sent: Wednesday, December 10, 2014 11:08:10 AM S

Re: CloudSolrServer, concurrency and too many connections

2014-12-10 Thread Greg Solovyev
I am seeing this problem with Java 1.8.0_25-b17 on Ubuntu 14.04.1 LTS ZK 3.4.6, Solr 4.10.2 Thanks, Greg - Original Message - From: "JoeSmith" To: "solr-user" Sent: Monday, December 8, 2014 6:19:08 PM Subject: Re: CloudSolrServer, concurrency and too many connec

Re: CloudSolrServer, concurrency and too many connections

2014-12-10 Thread Greg Solovyev
I am seeing the same problem with 4.10.2 and 4.9.0. CloudSolrServer keeps opening connections to ZK and never closes them. Eventually (very soon) ZK runs out of connections and stops accepting new ones. Thanks, Greg - Original Message - From: "JoeSmith" To: "solr-user

Re: CloudSolrServer, concurrency and too many connections

2014-12-08 Thread JoeSmith
Thanks, Shawn. I updated to 7u72 and was not able to reproduce the problem. That was good. But just to be sure about this, I backed back down to 7u55 and again was not able to reproduce. So at least for now, this has gone away even if the reason is inconclusive. On Mon, Dec 8, 2014 at 7:37 AM,

Re: CloudSolrServer, concurrency and too many connections

2014-12-08 Thread JoeSmith
We will need to update to 7u52, we are using 7u55. On the client side, this happens with zookeeper 3.4.6 and 4.10.2 solrj. And we will need to update both on the server side. What kind of config/setup information would you need to see if we do still have an issue after these updates? On Mon, D

Re: CloudSolrServer, concurrency and too many connections

2014-12-07 Thread Shawn Heisey
On 12/7/2014 9:11 PM, JoeSmith wrote: > i've upgraded to 4.10.2 on the client-side. Still seeing this connection > problem when connecting to the Zookeeper port. If I connect directly to > SolrServer, the connections do not increase. But when connecting to > Zookeeper, the connections increase u

Re: CloudSolrServer, concurrency and too many connections

2014-12-07 Thread JoeSmith
eisey wrote: > On 12/6/2014 12:09 PM, JoeSmith wrote: > > We are currently using CloudSolrServer, but it looks like this class is > not > > thread-safe (setDefaultCollection). Should this instance be initialized > > once (at startup) and then re-used (in all threa

Re: CloudSolrServer, concurrency and too many connections

2014-12-06 Thread Shawn Heisey
On 12/6/2014 12:09 PM, JoeSmith wrote: > We are currently using CloudSolrServer, but it looks like this class is not > thread-safe (setDefaultCollection). Should this instance be initialized > once (at startup) and then re-used (in all threads) until shutdown when the > process ter

CloudSolrServer, concurrency and too many connections

2014-12-06 Thread JoeSmith
We are using Solrj 10.10.0 to connect to a Zookeeper Solr host. What is the correct pattern for making concurrent requests to the Zookeeper host? We are currently using CloudSolrServer, but it looks like this class is not thread-safe (setDefaultCollection). Should this instance be initialized

Resource leak(?) when closing CloudSolrServer

2014-11-19 Thread Phanindra R
Hi, Our indexing job and expiration job run every ~60 minutes (for about 10 minutes) in the test environment, within same JVM. Every job creates a new CloudSolrServer (decision was taken keeping other parts of system design in mind) and invokes shutdown() after it's complete. We have been s

Resource closing of CloudSolrServer

2014-11-13 Thread Phanindra R
Hi, Our indexing job and expiration job run every ~60 minutes (for about 10 minutes) in the test environment, within same JVM. Every job creates a new CloudSolrServer (decision was taken keeping other parts of system design in mind) and invokes shutdown() after it's complete. We have been s

Re: Does CloudSolrServer hit zookeeper for every request?

2014-10-07 Thread Shalin Shekhar Mangar
CloudSolrServer doesn't hit ZooKeeper for every request. I am guessing that you are creating a new CloudSolrServer object per request. Don't do that. Create just one CloudSolrServer and re-use it for all requests. It is a thread-safe object. On Mon, Oct 6, 2014 at 8:58 PM, Jonnakuti, V

Re: Does CloudSolrServer hit zookeeper for every request?

2014-10-07 Thread Shawn Heisey
you're done with the server object and don't plan to use it again. That method shuts the object down so it can't be used any more. I admit that I don't have a lot of experience with CloudSolrServer, and I haven't looked at the code in enough detail to know exactly how it wo

Re: Does CloudSolrServer hit zookeeper for every request?

2014-10-06 Thread amitha
Yeah I saw that does if I call shutdown after a request and need to make another request I get org.apache.solr.client.solrj.SolrServerException: java.lang.IllegalStateException: Connection pool shut down -- View this message in context: http://lucene.472066.n3.nabble.com/Does-CloudSolrServer

Re: Does CloudSolrServer hit zookeeper for every request?

2014-10-06 Thread Joel Bernstein
There is a shutdown() method on CloudSolrServer that releases the resources for CloudSolrServer. Joel Bernstein Search Engineer at Heliosearch On Mon, Oct 6, 2014 at 11:39 AM, Jonnakuti, Vijayalatha < vijayalatha.jonnak...@disney.com> wrote: > We are using solr 4.8.0 > > From: ,

CloudSolrServer hit zookeeper for every request and too many zookeeper connections

2014-10-06 Thread amitha
We have too many zookeeper connections and had to increase max client connection on zookeeper(3.4.6) & solr 4.8.0 The underlaying problem looks like, CloudSolrServer makes a connect call to zookeeper for every request but never disconnects. Am I supposed to call getZkStateReader().close()

Re: Does CloudSolrServer hit zookeeper for every request?

2014-10-06 Thread Jonnakuti, Vijayalatha
We are using solr 4.8.0 From: , Vijay Jonnakuti mailto:vijayalatha.jonnak...@disney.com>> Date: Monday, October 6, 2014 at 8:34 AM To: "solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org>" mailto:solr-user@lucene.apache.org>> Subject: Does CloudSolrSe

Does CloudSolrServer hit zookeeper for every request?

2014-10-06 Thread Jonnakuti, Vijayalatha
Hi We have too many zookeeper connections and had to increase max client connection on zookeeper(3.4.6) The underlaying problem looks like, CloudSolrServer makes a connect call to zookeeper for every request but never disconnects. Am I supposed to call getZkStateReader().close() for every

Re: CloudSolrServer vs Software/Hardware Load Balancer

2014-07-11 Thread Shawn Heisey
On 7/11/2014 10:09 AM, jimtronic wrote: > We're trying to evaluate whether to use the CloudSolrServer in SolrJ or to > use the HttpSolrServer that is pointed at a software or hardware load > balancer such as haproxy or f5. This would be in production. > > Can anyone provide a

CloudSolrServer vs Software/Hardware Load Balancer

2014-07-11 Thread jimtronic
Hi there, We're trying to evaluate whether to use the CloudSolrServer in SolrJ or to use the HttpSolrServer that is pointed at a software or hardware load balancer such as haproxy or f5. This would be in production. Can anyone provide any experiential pros or cons on these? In additi

Re: Does CloudSolrServer hit zookeeper for every request?

2014-06-04 Thread Erick Erickson
it's healthy again. Best, Erick On Mon, Jun 2, 2014 at 2:17 PM, Jim.Musil wrote: > I’m curious how CloudSolrServer works in practice. > > I understand that it gets the active solr nodes from zookeeper, but does > it do this for every request? > > If it does hit zk for ever

Re: Does CloudSolrServer hit zookeeper for every request?

2014-06-02 Thread Steve McKay
, because the ZK server keeps all its data in memory and doesn’t have to go through the consensus rigamarole required for a write. On Jun 2, 2014, at 5:17 PM, Jim.Musil wrote: > I’m curious how CloudSolrServer works in practice. > > I understand that it gets the active solr n

Does CloudSolrServer hit zookeeper for every request?

2014-06-02 Thread Jim . Musil
I’m curious how CloudSolrServer works in practice. I understand that it gets the active solr nodes from zookeeper, but does it do this for every request? If it does hit zk for every request, that seems to put a lot of pressure on the zk ensemble. If it does NOT hit zk for every request, then

Re: Distributed commits in CloudSolrServer

2014-04-16 Thread Peter Keegan
and one replica, and 3 >> ZKs. The Solr indexes are behind a load balancer. There is one >> CloudSolrServer client updating the indexes. The index schema includes 3 >> ExternalFileFields. When the CloudSolrServer client issues a hard commit, >> I >> observe that the commi

Re: Distributed commits in CloudSolrServer

2014-04-16 Thread Peter Keegan
gt; > I have a SolrCloud index, 1 shard, with a leader and one replica, and 3 > ZKs. The Solr indexes are behind a load balancer. There is one > CloudSolrServer client updating the indexes. The index schema includes 3 > ExternalFileFields. When the CloudSolrServer client issues a hard co

Re: Distributed commits in CloudSolrServer

2014-04-15 Thread Mark Miller
Inline responses below. --  Mark Miller about.me/markrmiller On April 15, 2014 at 2:12:31 PM, Peter Keegan (peterlkee...@gmail.com) wrote: I have a SolrCloud index, 1 shard, with a leader and one replica, and 3  ZKs. The Solr indexes are behind a load balancer. There is one  CloudSolrServer

Distributed commits in CloudSolrServer

2014-04-15 Thread Peter Keegan
I have a SolrCloud index, 1 shard, with a leader and one replica, and 3 ZKs. The Solr indexes are behind a load balancer. There is one CloudSolrServer client updating the indexes. The index schema includes 3 ExternalFileFields. When the CloudSolrServer client issues a hard commit, I observe that

Re: java.lang.IllegalArgumentException when using SolrJ CloudSolrServer

2014-02-13 Thread jfeist
That did fix my issue, thanks so much. -- View this message in context: http://lucene.472066.n3.nabble.com/java-lang-IllegalArgumentException-when-using-SolrJ-CloudSolrServer-tp4116585p4117279.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: java.lang.IllegalArgumentException when using SolrJ CloudSolrServer

2014-02-10 Thread Shawn Heisey
On 2/10/2014 5:05 PM, jfeist wrote: I'm using Solr 4.5.1 and trying to use the SolrCloud setup. I have Zookeeper and Solr running on three machines. I have some Java code that does the following. SolrServer ss = new CloudSolrServer("http://localhost:8983/solr/collection1";); s

java.lang.IllegalArgumentException when using SolrJ CloudSolrServer

2014-02-10 Thread jfeist
I'm using Solr 4.5.1 and trying to use the SolrCloud setup. I have Zookeeper and Solr running on three machines. I have some Java code that does the following. SolrServer ss = new CloudSolrServer("http://localhost:8983/solr/collection1";); ss.deleteByQuery("*:*"); Th

Re: CloudSolrServer has thread safe issue?

2014-01-21 Thread longsan
Thanks. You are right. It's the key. -- View this message in context: http://lucene.472066.n3.nabble.com/CloudSolrServer-has-thread-safe-issue-tp4112423p4112618.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: CloudSolrServer has thread safe issue?

2014-01-21 Thread Erick Erickson
AM, longsan wrote: > Hi , > >i'm using SolrJ to do some indexing work with CloudSolrServer class. It's > strange that when i start several threads (each thread add 1 documents) > to add documents, the result is just only 1 can be indexed finally. But > if

CloudSolrServer has thread safe issue?

2014-01-21 Thread longsan
Hi , i'm using SolrJ to do some indexing work with CloudSolrServer class. It's strange that when i start several threads (each thread add 1 documents) to add documents, the result is just only 1 can be indexed finally. But if i change the thread num as 1, everything is o

Re: How we can get JSON response using CloudSolrServer

2013-11-12 Thread Jack Krupansky
ow we can get JSON response using CloudSolrServer I am using Solr4.4.0 version with SolrCloud (i.e. a ZooKeeper aware setup) I want to get search response in JSON using CloudSolrServer (of SolrJ API). Any pointer will be helpful. -- View this message in context: http://lucene.472066.n3.nabble.co

How we can get JSON response using CloudSolrServer

2013-11-12 Thread Dharmendra Jaiswal
I am using Solr4.4.0 version with SolrCloud (i.e. a ZooKeeper aware setup) I want to get search response in JSON using CloudSolrServer (of SolrJ API). Any pointer will be helpful. -- View this message in context: http://lucene.472066.n3.nabble.com/How-we-can-get-JSON-response-using

Re: Minor bug with CloudSolrServer and collection-alias.

2013-10-24 Thread Thomas Egense
and 3 > different > >> documents. And then creates an alias pointing to both of them. > >> > >> Line 153: > >>// search with new cloud client > >>CloudSolrServer cloudSolrServer = new > >> CloudSolrServer(zkServer.getZkAddress()

Re: Minor bug with CloudSolrServer and collection-alias.

2013-10-23 Thread Mark Miller
st-class AliasIntegrationTest creates to cores with 2 and 3 different >> documents. And then creates an alias pointing to both of them. >> >> Line 153: >>// search with new cloud client >>CloudSolrServer cloudSolrServer = new >> CloudSolrServer(zkServer.g

Re: Minor bug with CloudSolrServer and collection-alias.

2013-10-23 Thread Shawn Heisey
// search with new cloud client > CloudSolrServer cloudSolrServer = new > CloudSolrServer(zkServer.getZkAddress(), random().nextBoolean()); > cloudSolrServer.setParallelUpdates(random().nextBoolean()); > query = new SolrQuery("*:*"); > query.set("

Minor bug with CloudSolrServer and collection-alias.

2013-10-23 Thread Thomas Egense
is mapped to. You can confirm this easy in AliasIntegrationTest. The test-class AliasIntegrationTest creates to cores with 2 and 3 different documents. And then creates an alias pointing to both of them. Line 153: // search with new cloud client CloudSolrServer cloudSolrServer = new

Re: Not able to index documents using CloudSolrServer

2013-09-26 Thread Erick Erickson
ne.472066.n3.nabble.com/Not-able-to-index-documents-using-CloudSolrServer-tp4092074p4092238.html > Sent from the Solr - User mailing list archive at Nabble.com.

Re: Not able to index documents using CloudSolrServer

2013-09-26 Thread shamik
ge in context: http://lucene.472066.n3.nabble.com/Not-able-to-index-documents-using-CloudSolrServer-tp4092074p4092238.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Not able to index documents using CloudSolrServer

2013-09-26 Thread shamik
Anyone suggestion ? -- View this message in context: http://lucene.472066.n3.nabble.com/Not-able-to-index-documents-using-CloudSolrServer-tp4092074p4092185.html Sent from the Solr - User mailing list archive at Nabble.com.

Not able to index documents using CloudSolrServer

2013-09-26 Thread Shamik Bandopadhyay
Hi, I've recently started exploring SolrCloud and is trying to index documents using CloudSolrServer client. The issue I'm seeing is if I don't fire an explicit commit on CloudSolrServer object, the documents are not getting indexed. Here's my code snippet : CloudSol

Re: Can we used CloudSolrServer for searching data

2013-09-11 Thread Dharmendra Jaiswal
Thanks for your reply. I am using Solrcloud with zookeeper setup. And using CloudSolrServer for both indexing and searching. As per my understanding CloudSolrserver by default using LBHttpSolrServer. And CloudSolrServer connect to Zookeeper and passing all the running server node to

Re: Can we used CloudSolrServer for searching data

2013-09-07 Thread Furkan KAMACI
Shalin is right. If you read the documentation for CloudSolrServer you will see that: *SolrJ client class to communicate with SolrCloud. Instances of this class communicate with Zookeeper to discover Solr endpoints for SolrCloud collections, and then use the LBHttpSolrServer to issue requests

Re: Can we used CloudSolrServer for searching data

2013-09-03 Thread Shalin Shekhar Mangar
CloudSolrServer can only be used if you are actually using SolrCloud (i.e. a ZooKeeper aware setup). If you only have a multi-core setup, then you can use LBHttpSolrServer. See http://wiki.apache.org/solr/LBHttpSolrServer On Tue, Aug 27, 2013 at 2:11 PM, Dharmendra Jaiswal wrote: > Hello, &g

Can we used CloudSolrServer for searching data

2013-08-27 Thread Dharmendra Jaiswal
wrong. My query is that is it possible to connect with Solr using CloudSolrServer instead of HTTPSolrServer for searching. so that in case one node will be down cloud solr server will pick data from other instance of Solr. Any pointer and link will be helpful. it will be better if some one shared

Re: Usage of CloudSolrServer?

2013-07-12 Thread Furkan KAMACI
CloudSolrServer uses LBHttpSolrServer by default. CloudSolrServer connects to Zookeeper and passes the live nodes to LBHttpSolrServer. LBHttpSolrServer connects each node as round robin. By the way do you mean "leader" instead of "master"? 2013/7/12 sathish_ix

Re: Usage of CloudSolrServer?

2013-07-11 Thread sathish_ix
Hi , Iam using cloudsolrserver to connect to solrcloud, im indexing the documents using solrj API using cloudsolrserver object. Index is triggered on master node of a collection, whereas if i need to find the status of the loading , it return the message from replica where status is null. How to

Re: Why there is no getter method for defaultCollection at CloudSolrServer?

2013-06-27 Thread Furkan KAMACI
;> >> > Why there is no getter method for defaultCollection at CloudSolrServer? >> >> Want to create a JIRA issue to add it? >> >> - Mark >> > >

  1   2   >