Load-balancing Solr instances

2015-12-18 Thread Andrej van der Zee
Hi, Could someone please inform me about best practices when load-balancing queries over Solr instances? We will have many shards each with multiple replications. I understand that sending my request to one particular Solr instance will be routed appropriately, but requests will still be sent to

Re: Expected mime type application/octet-stream but got text/html

2015-12-18 Thread Andrej van der Zee
Hi, > Fixed on erick's behalf because he had to run to a meeting... > > https://cwiki.apache.org/confluence/display/solr/Distributed+Requests > > ...i also wen't ahead to shift the examples to more emphasize using shard > Ids since that's probably safer/cleaner for most people. > Thanks for the

Re: Expected mime type application/octet-stream but got text/html

2015-12-17 Thread Andrej van der Zee
It turns out that the documentation is not correct. If I specify the collection name after shards=, it does work as expected. So this works: curl " http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&rows=1000&shards=54.93.121.54:8986/solr/connects " This does not work: curl

Expected mime type application/octet-stream but got text/html

2015-12-17 Thread Andrej van der Zee
Hi, I am having troubles getting data from a particular shard, even though I follow the documentation: https://cwiki.apache.org/confluence/display/solr/Distributed+Requests This is OK: curl " http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true"; { // returns correct re

Re: Timeouts for create_collection

2015-12-16 Thread Andrej van der Zee
Hi, I completely started over again. Now I get the following error upon create_collection: solr@ip-172-31-11-63:/opt/solr$ ./bin/solr create_collection -c connects -replicationFactor 2 Connecting to ZooKeeper at 172.31.11.65:2181 ... Re-using existing configuration directory connects Creating n

Timeouts for create_collection

2015-12-16 Thread Andrej van der Zee
Hi, I am newby to Solr and I am having difficulties setting up a cluster with a single Zookeeper instance and two Solr instances. The Solr intances both successfully establish sessions with the Zookeeper and I am able to upload collection configs to Zookeeper, but somehow creating a collection fro

Solr cloud instance does not read cores from Zookeeper whilst connected

2015-12-16 Thread Andrej van der Zee
Hi, I have setup Zookeer and uploaded a collection config. But somehow it seems that Solr keeps reading core definitions locally ("Looking for core definitions underneath /opt/solr/server/solr") instead of getting it from Zookeep. Below the logs. Probably some kind of config thingy, unfortunately

Where/howto store store.xml in Zookeeper?

2015-12-16 Thread Andrej van der Zee
Hi, When I start a Solr cloud instance, I keep getting this in the log: 800 INFO (main) [ ] o.a.s.c.c.ConnectionManager Client is connected to ZooKeeper 800 INFO (main) [ ] o.a.s.c.c.SolrZkClient Using default ZkACLProvider 805 INFO (main) [ ] o.a.s.s.SolrDispatchFilter Loading solr.x