solr-zkcli
A node.js wrapper for the Solr's ZooKeeper CLI zkcli.sh to manage SolrCloud configuration parameters
Installation
Step 1: Prerequisites
The docker command line tool must be installed and accessible in the path.
Step 2: Installation
npm install solr-zkcli
Then:
var solrZkcli = require('solr-zkcli');
Usage
With promise
var options = {
zkhost: '127.0.0.1:9983',
cmd: 'upconfig',
confname: 'my_new_config',
confdir: 'server/solr/configsets/basic_configs/conf'
}
solrZkcli( options ).then(function (data) {
console.log('data = ', data);
});
With callback:
solrZkcli( options, function (err, data) {
console.log('data = ', data);
});