usage: clickhouse-copier --config-file <config-file> --task-path <task-path>
Copies tables from one cluster to another
-C<file>, --config-file=<file>
load
configuration
from
a
given
file
-L<file>, --log-file=<file>
use
given
log
file
-E<file>, --errorlog-file=<file>
use
given
log
file
for
errors
only
-P<file>, --pid-file=<file>
use
given
pidfile
--daemon
Run
application
as
a
daemon.
--umask=mask
Set
the
daemon's
umask
(octal,
e.g.
027).
--pidfile=path
Write
the
process
ID
of
the
application
to
given
file.
--task-path=task-path
path
to
task
in
ZooKeeper
--task-file=task-file
path
to
task
file
for
uploading
in
ZooKeeper
to
task-path
--task-upload-force=task-upload-force
Force
upload
task-file
even
node
already
exists
--safe-mode
disables
ALTER
DROP
PARTITION
in
case
of
errors
--copy-fault-probability=copy-fault-probability
the
copying
fails
with
specified
probability
(used
to
test
partition
state
recovering)
--move-fault-probability=move-fault-probability
the
moving
fails
with
specified
probability
(used
to
test
partition
state
recovering)
--log-level=log-level
sets
log
level
--base-dir=base-dir
base
directory
for
copiers,
consecutive
copier
launches
will
populate
/base-dir/launch_id/*
directories
--experimental-use-sample-offset=experimental-use-sample-offset
Use
SAMPLE
OFFSET
query
instead
of
cityHash64(PRIMARY
KEY)
%
n
==
k
--status
Get
for
status
for
current
execution
--max-table-tries=max-table-tries
Number
of
tries
for
the
copy
table
task
--max-shard-partition-tries=max-shard-partition-tries
Number
of
tries
for
the
copy
one
partition
task
--max-shard-partition-piece-tries-for-alter=max-shard-partition-piece-tries-for-alter
Number
of
tries
for
final
ALTER
ATTACH
to
destination
table
--retry-delay-ms=retry-delay-ms
Delay
between
task
retries
--help
produce
this
help
message
Options (22)
| Option | Description | Source |
|---|---|---|
-C, --config-file file | load configuration from a given file | help |
-L, --log-file file | use given log file | help |
-E, --errorlog-file file | use given log file for errors only | help |
-P, --pid-file file | use given pidfile | help |
--daemon | Run application as a daemon. | help |
--umask mask | Set the daemon's umask (octal, e.g. 027). | help |
--pidfile path | Write the process ID of the application to given file. | help |
--task-path task-path | path to task in ZooKeeper | help |
--task-file task-file | path to task file for uploading in ZooKeeper to task-path | help |
--task-upload-force task-upload-force | Force upload task-file even node already exists | help |
--safe-mode | disables ALTER DROP PARTITION in case of errors | help |
--copy-fault-probability copy-fault-probability | the copying fails with specified probability (used to test partition state recovering) | help |
--move-fault-probability move-fault-probability | the moving fails with specified probability (used to test partition state recovering) | help |
--log-level log-level | sets log level | help |
--base-dir base-dir | base directory for copiers, consecutive copier launches will populate /base-dir/launch_id/* directories | help |
--experimental-use-sample-offset experimental-use-sample-offset | Use SAMPLE OFFSET query instead of cityHash64(PRIMARY KEY) % n == k | help |
--status | Get for status for current execution | help |
--max-table-tries max-table-tries | Number of tries for the copy table task | help |
--max-shard-partition-tries max-shard-partition-tries | Number of tries for the copy one partition task | help |
--max-shard-partition-piece-tries-for-alter | Number of tries for final ALTER ATTACH to destination table | help |
--retry-delay-ms retry-delay-ms | Delay between task retries | help |
--help | produce this help message | help |