org.apache.solr.client.solrj.impl.HttpSolrServer cannot be cast to org.apache.solr.client.solrj.SolrServer
val solr_client = new SolrClient("http://localhost:8983/solr/apc2015")
dataFrame.collect().foreach(x=>{solr_client.add(Map("serial_number"->x(0), "registration_number"->x(1)))})
solr_client.commit()
org.apache.solr.client.solrj.impl.HttpSolrServer cannot be cast to org.apache.solr.client.solrj.SolrServer val solr_client = new SolrClient("http://localhost:8983/solr/apc2015") dataFrame.collect().foreach(x=>{solr_client.add(Map("serial_number"->x(0), "registration_number"->x(1)))}) solr_client.commit()