Could not connect to ZooKeeper using Solr in localhost
问题 I'm using Solr 6 and I'm trying to populate it. Here's the main scala I put in place : object testChildDocToSolr { def main(args: Array[String]): Unit = { setProperty("hadoop.home.dir", "c:\\winutils\\") val sparkSession = SparkSession.builder() .appName("spark-solr-tester") .master("local") .config("spark.ui.enabled", "false") .config("spark.default.parallelism", "1") .getOrCreate() val sc = sparkSession.sparkContext val collectionName = "testChildDocument" val testDf = sparkSession.read