Package org.apache.solr.cloud
Class ZkCLI
java.lang.Object
org.apache.solr.cloud.ZkCLI
- All Implemented Interfaces:
CLIO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAllows you to perform a variety of zookeeper related tasks, such as:static voidsetStdout(PrintStream stdout)
-
Constructor Details
-
ZkCLI
public ZkCLI()
-
-
Method Details
-
setStdout
-
main
public static void main(String[] args) throws InterruptedException, TimeoutException, IOException, ParserConfigurationException, SAXException, org.apache.zookeeper.KeeperException Allows you to perform a variety of zookeeper related tasks, such as:Bootstrap the current configs for all collections in solr.xml.
Upload a named config set from a given directory.
Link a named config set explicity to a collection.
Clear ZooKeeper info.
If you also pass a solrPort, it will be used to start an embedded zk useful for single machine, multi node tests.
- Throws:
InterruptedExceptionTimeoutExceptionIOExceptionParserConfigurationExceptionSAXExceptionorg.apache.zookeeper.KeeperException
-