11-03-2017 02:50 AM - last edited on 11-03-2017 05:22 AM by cjervis
I have created a new collection in Solr using the HUE web interface and I am able to insert the data for existing collections into Solr using Python code and the Solr API.
But I would like to create a new Solr collection using Python code, for which it requires that the configuration files should be existing in Zookeeper beforehand.
Could you please assist on how to create these configuration files in Zookeeper, preferably using Python?
11-03-2017 06:11 AM - edited 11-03-2017 06:12 AM
Cloudera search provide an utility for administrating Solr (solrctl).
One of the command purpose is to upload a "collection configuration files" into zookeeper.
11-03-2017 06:22 AM
Thanks for quick response. Your answer is fine, but I am looking something specific for python-spark code.