I have SolrCloud pre-installed. I need to create a collection, but before that 
I need to load the config into zookeeper. 

I want to automate the entire process from my Java process which is not running 
on any of the servers were SolrCloud is running. In short, I don’t have access 
to bin/solr or server/scripts/cloud-scripts, etc from my application. So I was 
wondering if there were any way, like uploading a zip with the configs 
(schema.xml, solrconfig.xml, etc.). One workaround I can thinking is of making 
direct zookeeper calls.

Anshum, thanks for your reply. I will see if I can find the JIRA.

Thanks


Bosco




On 4/6/16, 2:17 PM, "Erick Erickson" <erickerick...@gmail.com> wrote:

>As of Solr 5.5 the bin/solr script can do this, see:
>https://cwiki.apache.org/confluence/display/solr/Solr+Start+Script+Reference
>
>It's still not quite what you're looking for, but uploading arbitrary
>xml scripts through a browser is a security issue, so it's possible
>there will never be an API call to do that.
>
>Best
>Erick
>
>On Wed, Apr 6, 2016 at 1:52 PM, Anshum Gupta <ans...@anshumgupta.net> wrote:
>> As of now, there's no way to do so. There were some efforts on those lines 
>> but it's been on hold.
>>
>> -Anshum
>>
>>> On Apr 6, 2016, at 12:21 PM, Don Bosco Durai <bo...@apache.org> wrote:
>>>
>>> Is there an equivalent of server/scripts/cloud-scripts/zkcli.sh  -zkhost 
>>> $zk_host -cmd upconfig -confdir $config_folder -confname $config_name using 
>>> APIs?
>>>
>>> I want to bootstrap by uploading the configs via API. Once the configs are 
>>> uploaded, I am now able to do everything else via API.
>>>
>>> Thanks
>>>
>>> Bosco
>>>
>>>

Reply via email to