title: Will not attempt to authenticate using SASL (unknown error)
body: <p>I try to query data from Solr through Spark. I have a problem with ZooKeeper connection. I have started solr as follows:
  solr start (not solr cloud) and also zkserver on another cmd. </p>
  
  <p>Please have a look at my code:</p>
  
  <pre><code>object solr extends App {
  
    val zkHost = "127.0.0.1:57864"
    val collection = "website"
    val queryStr = "*:*"
  
    val conf = new SparkConf().setMaster("local").setAppName("My App")
    val sc = new SparkContext(conf)
  
    val solrRDD: SelectSolrRDD = new SelectSolrRDD(zkHost, collection, sc)
    val rdd: RDD[SolrDocument]  = solrRDD.query(queryStr)
  
    val words: RDD[String] = rdd.map(doc =&gt; if (doc.containsKey("the")) doc.get("the").toString else "")
  
    val counts = words
      .map(word =&gt; (word, 1))
      .reduceByKey(_ + _)
  
    counts.foreach(println)
    System.out.println("Total words: " + counts.count());
  
    sc.stop()
  }
  </code></pre>
  
  <p>I also tried with <code>val zkHost = "localhost:2181"</code> but I become the same error. </p>
  
  <p>My error looks like:</p>
  
  <pre><code>19/03/12 15:59:09 INFO ClientCnxn: Opening socket connection to server 127.0.0.1/127.0.0.1:57864. Will not attempt to authenticate using SASL (unknown error)
  19/03/12 15:59:10 INFO ClientCnxn: Socket error occurred: 127.0.0.1/127.0.0.1:57864: Connection refused: no further information
  19/03/12 15:59:11 INFO ClientCnxn: Opening socket connection to server 127.0.0.1/127.0.0.1:57864. Will not attempt to authenticate using SASL (unknown error)
  19/03/12 15:59:12 INFO ClientCnxn: Socket error occurred: 127.0.0.1/127.0.0.1:57864: Connection refused: no further information
  </code></pre>
  
  <p>... and this continously. And at the end:</p>
  
  <pre><code>Exception in thread "main" com.google.common.util.concurrent.UncheckedExecutionException: org.apache.solr.common.SolrException: java.util.concurrent.TimeoutException: Could not connect to ZooKeeper 127.0.0.1:57864 within 60000 ms
  </code></pre>
  
  <p>Does anyone know what do I miss? </p>