Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solrClient not able to connect to Solr instance. #33

Open
dhruvsinghal991 opened this issue Oct 29, 2015 · 0 comments
Open

solrClient not able to connect to Solr instance. #33

dhruvsinghal991 opened this issue Oct 29, 2015 · 0 comments

Comments

@dhruvsinghal991
Copy link

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant