Yup - just tested - that command runs fine with Solr NOT running...

On Wed, Apr 6, 2016 at 3:41 PM, John Bickerstaff <j...@johnbickerstaff.com>
wrote:

> If you can get to the IP addresses from your application, then there's
> probably a way...  Do you mean you're firewalled off or in some other way
> unable to access the Solr box IP's from your Java application?
>
> If you're looking to do "automated build of virtual machines" there are
> some tools like Vagrant...
>
> https://en.wikipedia.org/wiki/Vagrant_(software)
>
> Also, you probably don't need to be directly on one of the 'official" SOLR
> machines to load the configs.  I haven't tested, but as long as you have
> the configs and a VM or server running SOLR, you could do this yourself.
>
> The following command (as far as I've been able to tell) ONLY creates the
> conf "directory" in Zookeeper... nothing else...
>
> And, as a matter of fact, I'm almost positive SOLR did not need to be
> running when I did this, but I did so many variations while trying to
> figure out how to bring up a new 5.4 collection that I'm not positive - I
> could be totally wrong on that one.
>
> My point is that I uploaded the configs from a machine that had no
> collection yet...  it worked fine to set up then configs in Zookeeper.
> Later, I issued the create collection command and referenced the config in
> Zookeeper with the -n(?) flag...
>
> sudo /opt/solr/server/scripts/cloud-scripts/zkcli.sh -cmd upconfig
> -confdir /home/john/conf/ -confname statdx -z 192.168.56.5/solr5_4
>
> On Wed, Apr 6, 2016 at 3:26 PM, Don Bosco Durai <bo...@apache.org> wrote:
>
>> 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