I have a basic Solr 5.0.0 cloud setup after following 
http://lucene.apache.org/solr/quickstart.html

I am trying to read data from spark and index it into solr using following lib:
https://github.com/LucidWorks/spark-solr

I am getting following error when my code try to make request to solr


Exception in thread "main" org.apache.spark.SparkException: Job aborted due to 
stage failure: Task 0 in stage 0.0 failed 1 times, most recent failure: Lost 
task 0.0 in stage 0.0 (TID 0, localhost): 
org.apache.solr.common.cloud.ZooKeeperException:

at 
org.apache.solr.client.solrj.impl.CloudSolrClient.connect(CloudSolrClient.java:465)

.............

..............

..............

Caused by: org.apache.zookeeper.KeeperException$NoNodeException: 
KeeperErrorCode = NoNode for /clusterstate.json

at org.apache.zookeeper.KeeperException.create(KeeperException.java:111)

at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)

at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)

at org.apache.solr.common.cloud.SolrZkClient$10.execute(SolrZkClient.java:500)



I am not sure how (and when) to create nodes for "/clusterstate.json"

I am using solr 5.0.0, sorlj5.0.0 spark-core_2.10_2.12.jar



Thanks for the help.

Sumit Purohit

Reply via email to