Perform ZooKeeper information operations
To get or modify specific settings in ZooKeeper, follow the steps below:
Go to the ZooKeeper folder:
cd INSTALL_DIR/zookeeper/binConnect to the Master server via SSH:
./zkCli.shRun the following commands to find the settings to be modified:
[zk: localhost:2181(CONNECTED) 21] ls /
[mesos, ct, zookeeper, marathon, config][zk: localhost:2181(CONNECTED) 22] ls /config
[automl-model-service, worker-management-service, automl-gateway-service, bot-manager, application, application,execution-worker, bot-agent, task-dispatcher-service, com.workfusion.spa.ct:worker-app:10.0.0.1, worker-ct-rpa]Review the current value for a particular setting:
[zk: localhost:2181(CONNECTED) 30] get /config/automl-model-service/automl.service.model.execution.operation.total-timeout
5m <------------------------------ this is the current value.
cZxid = 0xf2
ctime = Fri Aug 16 08:35:41 UTC 2019
mZxid = 0xf2
mtime = Fri Aug 16 08:35:41 UTC 2019
pZxid = 0xf2
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 2
numChildren = 0Run the following command to modify the value:
[zk: localhost:2181(CONNECTED) 0] set /config/automl-model-service/automl.service.model.execution.operation.total-timeout 10m
cZxid = 0xf2
ctime = Fri Aug 16 08:35:41 UTC 2019
mZxid = 0x4f8
mtime = Fri Sep 13 15:54:38 UTC 2019
pZxid = 0xf2
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 3
numChildren = 0To create another value, for example, increase a training timeout, run the following command:
[zk: localhost:2181(CONNECTED) 16] create /config/automl-model-service/automl.service.model.training.timeout 24h 'world,'anyone
Created /config/automl-model-service/automl.service.model.training.timeout