mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
2.0 KiB
2.0 KiB
slug | sidebar_label |
---|---|
/en/operations/utilities/clickhouse-keeper-client | clickhouse-keeper-client |
clickhouse-keeper-client
A client application to interact with clickhouse-keeper by its native protocol.
Keys
-q QUERY
,--query=QUERY
— Query to execute. If this parameter is not passed,clickhouse-keeper-client
will start in interactive mode.-h HOST
,--host=HOST
— Server host. Default value:localhost
.-p N
,--port=N
— Server port. Default value: 2181--connection-timeout=TIMEOUT
— Set connection timeout in seconds. Default value: 10s.--session-timeout=TIMEOUT
— Set session timeout in seconds. Default value: 10s.--operation-timeout=TIMEOUT
— Set operation timeout in seconds. Default value: 10s.--history-file=FILE_PATH
— Set path of history file. Default value:~/.keeper-client-history
.--help
— Shows the help message.
Example
./clickhouse-keeper-client -h localhost:2181 --connection-timeout 30 --session-timeout 30 --operation-timeout 30
Connected to ZooKeeper at [::1]:2181 with session_id 137
/ :) ls
keeper foo bar
/ :) cd keeper
/keeper :) ls
api_version
/keeper :) cd api_version
/keeper/api_version :) ls
/keeper/api_version :) cd xyz
Path /keeper/api_version/xyz does not exists
/keeper/api_version :) cd ../../
/ :) ls
keeper foo bar
/ :) get keeper/api_version
2
Commands
ls [path]
-- Lists the nodes for the given path (default: cwd)cd [path]
-- Change the working path (default.
)set <path> <value> [version]
-- Updates the node's value. Only update if version matches (default: -1)create <path> <value>
-- Creates new nodeget <path>
-- Returns the node's valueremove <path>
-- Remove the nodermr <path>
-- Recursively deletes path. Confirmation requiredflwc <command>
-- Executes four-letter-word commandhelp
-- Prints this message