spark-solr
spark-solr copied to clipboard
Interpreter output:Caused by: java.lang.ClassNotFoundException: solr.DefaultSource
We are running below code in our zeppelin notebook
val zkhost = "host1:2181,host2:2181,host3:2181/solr" var data = spark.sqlContext.read.format("solr").options(Map("zkhost" -> zkhost, "collection" -> "demo2")).load data.show
I'm passing below parameter in zeppelin interpreter settings spark.jars=/spark-solr-3.5.8-shaded.jar but i'm still getting below error in interpreter logs
Interpreter output:Caused by: java.lang.ClassNotFoundException: solr.DefaultSource
If I ran the same code using same jar using spark shell then it is working properly there Please suggest what I'm doing wrong in zeppelin
Regards Pankaj
Make sure Spark is importing that jar. Check driver logs to verify that the jar is added to classpath