Seems something is stopping the connection from occurring? Tests are constantly running and doing this using an embedded zk server - and I know more than a few people using an external zk setup. I'd have to guess something in your env or URL is causing this?
On May 16, 2012, at 3:11 PM, Daniel Brügge wrote: > OK, it's also not working with an internal started Zookeeper. > > On Wed, May 16, 2012 at 8:29 PM, Daniel Brügge < > daniel.brue...@googlemail.com> wrote: > >> Hi, >> >> I am just playing around with SolrCloud and have read in articles like >> >> http://www.lucidimagination.com/blog/2012/03/05/scaling-solr-indexing-with-solrcloud-hadoop-and-behemoth/that >> it >> is sufficient to create the connection to the Zookeeper instance and not >> to the Solr instance. >> When I try to connect to my standalone Zookeeper instance (not started >> with a Solr instance and "-DzkRun") I am getting this error: >> >> Caused by: java.util.concurrent.TimeoutException: Could not connect to >>> ZooKeeper >> >> >> I am also getting this error when I try to connect directly to one of the >> Solr instances. >> >> My code looks like this: >> >> solr = new CloudSolrServer("myzkhost:2181"); >> ((CloudSolrServer) solr).setDefaultCollection("collection1"); >> >> I am working with the latest Solr trunk version ( >> https://builds.apache.org/view/S-Z/view/Solr/job/Solr-trunk/1855/) >> >> Do I need to start the zookeeper in Solr to keep this working? >> >> Thanks & regards >> >> Daniel >> - Mark Miller lucidimagination.com