Skip to content

16.4.8 machcoordinatoradmin

machcoordinatoradmin manages Coordinator nodes and controls cluster configuration in Machbase Cluster Edition. It is included only in the Cluster Edition package.

Options

machcoordinatoradmin -h

Basic Administration

OptionDescription
-u, --startupStart the Coordinator process
-s, --shutdownShut down the Coordinator process gracefully
-k, --killForce the Coordinator process to stop
-c, --createdbCreate Coordinator metadata
-d, --destroydbDelete Coordinator metadata and package files
-e, --checkCheck whether the Coordinator process is running
-i, --silentRun without a banner
--home-path=pathSet the Machbase home path

Configuration Queries

OptionDescription
--configuration[=name]Display configuration keys and values, optionally for one key
--configureDisplay all system properties

Cluster State Control

OptionDescription
--activateChange cluster state to Service
--deactivateChange cluster state to Deactivate
--cluster-statusDisplay a summary of each cluster node’s status
--cluster-status-fullDisplay detailed status for each cluster node
--cluster-nodeDisplay cluster information
--verboseInclude Deployer status in status output

Package Management

OptionDescription
--list-package[=package]List registered packages, optionally for one package
--add-package=packageAdd a package
--remove-package=packageRemove a package

Node Management

OptionDescription
--list-node[=node]List node information
--add-node=nodeAdd a node
--remove-node=nodeRemove a node
--attach-node=nodeAttach an existing node to cluster metadata
--detach-node=nodeDetach a node from cluster metadata
--upgrade-node=nodeUpgrade a node
--startup-node=nodeStart a specific node
--shutdown-node=nodeShut down a specific node gracefully
--kill-node=nodeForce a specific node to stop

Lookup Node Management

OptionDescription
--startup-lookupStart Lookup nodes
--shutdown-lookupStop Lookup nodes
--set-lookup-master=nodeSet the Lookup master node

Warehouse Group and State Management

OptionDescription
--set-group-state=[normal|readonly]Change a Warehouse group’s state
--set-warehouse-state=[normal|scrapped]Change the state of the Warehouse specified by --node
--force-restore-warehouse=nodeForce recovery of a scrapped Warehouse

Broker Management

OptionDescription
--deactivate-broker=nodeSet the specified node to inactive
--activate-broker=nodeSet the specified node to normal

Snapshot Management

OptionDescription
--snapshot-interval=secSet the snapshot interval in seconds
--exec-snapshotRun a snapshot immediately (requires --group)
--snapshot-recover=nodeRecover the specified node from a snapshot
--exec-sync=nodeSynchronize the specified node
--snapshot-cleanClean up snapshots

Host Resource Monitoring

OptionDescription
--get-host-resourceDisplay host resource information for each node
--host-resource-enableStart collecting host resource information
--host-resource-disableStop collecting host resource information

Additional Options (Used with Other Options)

Additional OptionRequired OptionDescription
--file-name=filename--add-packagePackage filename
--port-no=portno--add-node, --attach-nodeService port
--http-admin-port=portnoCoordinator/Deployer --add-node, --attach-nodeAdministration REST port
--deployer=node--add-nodeDeployer node name
--package-name=name--add-node, --upgrade-nodeInstallation source package name
--home-path=path--add-node, --attach-nodeNode installation path
--node-type=[broker|warehouse|lookup]--add-node, --attach-nodeNode type
--lookup-type=[master|slave|monitor]--add-node, --attach-nodeLookup node type
--node=node--set-warehouse-stateNode whose state to change
--alias=alias--add-node, --attach-nodeNode alias
--dbs-path=path--add-node (Broker/Warehouse)Database file path
--group=groupname--add-node, --attach-node, --set-group-state, --exec-snapshotNode group name
--replication=host:port--add-node, --attach-nodeReplication target host:port
--no-replicate--add-node, --attach-nodeDisable replication
--primary=host:port-u, --startupSet the Primary for a Secondary Coordinator
--host=host--get-host-resourceSelect a specific host
--metric=[cpu|memory|disk|network]--get-host-resourceMetric to display

Examples

Checking Process Status

machcoordinatoradmin -e

Checking Cluster Status

machcoordinatoradmin --cluster-status
machcoordinatoradmin --cluster-status-full

Activating/Deactivating the Cluster

machcoordinatoradmin --activate
machcoordinatoradmin --deactivate

Adding a Warehouse Node

machcoordinatoradmin \
  --add-node=192.168.0.32:5401 \
  --node-type=warehouse \
  --deployer=192.168.0.32:5201 \
  --package-name=machbase \
  --home-path=/home/machbase/warehouse_a1 \
  --port-no=5400 \
  --group=Group1 \
  --alias=warehouse-a1 \
  --dbs-path=/data/machbase/warehouse_a1_dbs

Listing Nodes

machcoordinatoradmin --list-node
machcoordinatoradmin --list-node=192.168.0.32:5401

Setting a Warehouse Group to Read-only

machcoordinatoradmin --set-group-state=readonly --group=Group1

Querying Configuration

machcoordinatoradmin --configuration
machcoordinatoradmin --configuration=decision

Monitoring Host Resources

machcoordinatoradmin --host-resource-enable
machcoordinatoradmin --get-host-resource
machcoordinatoradmin --get-host-resource --metric=cpu
machcoordinatoradmin --get-host-resource --host=192.168.0.33
machcoordinatoradmin --host-resource-disable
Last updated on