[ 
https://issues.apache.org/jira/browse/SOLR-2805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177257#comment-13177257
 ] 

Mark Miller commented on SOLR-2805:
-----------------------------------

Here is an up to date example of using the tool (run from the solr directory of 
a lucene/solr checkout):

{noformat}
java -classpath lib/*:dist/*:build/lucene-libs/* 
org.apache.solr.cloud.ZkController 127.0.0.1:9983 example/solr 8983 
example/solr/conf conf1
{noformat}

It takes the zookeeper address, solrhome, solr port, conf file dir to upload 
and the name of the conf set.

You have to run the dist ant target first with the above example.
                
> Add a main method to ZkController so that it's easier to script config upload 
> with SolrCloud
> --------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2805
>                 URL: https://issues.apache.org/jira/browse/SOLR-2805
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>            Priority: Minor
>             Fix For: 4.0
>
>
> when scripting a cluster setup, it would be nice if it was easy to upload a 
> set of configs - otherwise you have to wait to start secondary servers until 
> the first server has uploaded the config - kind of a pain
> You should be able to do something like:
> java -classpath .:* org.apache.solr.cloud.ZkController 127.0.0.1:9983 
> 127.0.0.1 8983 solr /home/mark/workspace/SolrCloud/solr/example/solr/conf 
> conf1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to