You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alexey-milovidov
changed the title
Syntax error (storage definition): failed at position 1 ('rand'): rand().
clickhouse-copier: Syntax error (storage definition): failed at position 1 ('rand'): rand().
Aug 2, 2023
got the same error here on 23.3.13.7.altinitystable.. when running clickhouse-copier on a ReplicatedMergeTree
tried to point it to the Distributed, too.. did not work either
clickhouse-copier only works with MergeTree tables.
You have to provide the exact engine parameters in the task config file because clickhouse-copier creates intermediate MergeTree tables as part of its process.
Version:
ClickHouse server version 23.6.2.18 (official build).
Command:
clickhouse-copier --config keeper.xml --task-path /etc/clickhouse-server/copier --base-dir /var/log/clickhouse-server
Error:
Logging trace to /var/log/clickhouse-server/clickhouse-copier_20230802114341_444907/log.log
Logging errors to /var/log/clickhouse-server/clickhouse-copier_20230802114341_444907/log.err.log
2023.08.02 11:43:41.090784 [ 444907 ] {} SentryWriter: Sending crash reports is disabled
2023.08.02 11:43:41.091107 [ 444907 ] {} Pipe: Pipe capacity is 1.00 MiB
2023.08.02 11:43:41.184486 [ 444907 ] {} Application: Starting ClickHouse 23.6.2.18 (revision: 54475, git hash: 89f39a7, build id: D0E83BD1974B9B4B1FE300F9D23222CFF56067E2), PID 444907
2023.08.02 11:43:41.184806 [ 444907 ] {} Application: Starting clickhouse-copier (id 20230802114341_444907, host_id ch%2D01#20230802114341_444907, path /var/log/clickhouse-server/clickhouse-copier_20230802114341_444907, revision 54475)
2023.08.02 11:43:41.203990 [ 444907 ] {} ZooKeeperClient: Connected to ZooKeeper at 10.3.1.201:2181 with session_id 189
2023.08.02 11:43:41.205865 [ 444907 ] {} ZooKeeperClient: Keeper feature flag FILTERED_LIST: enabled
2023.08.02 11:43:41.205951 [ 444907 ] {} ZooKeeperClient: Keeper feature flag MULTI_READ: enabled
2023.08.02 11:43:41.205969 [ 444907 ] {} ZooKeeperClient: Keeper feature flag CHECK_NOT_EXISTS: disabled
2023.08.02 11:43:41.205995 [ 444907 ] {} ZooKeeper: Initialized, hosts: 10.3.1.201:2181
2023.08.02 11:43:41.206908 [ 444907 ] {} Application: Loading task description
2023.08.02 11:43:41.208161 [ 444907 ] {} MemoryTracker: Peak memory usage (for query): 0.00 B.
2023.08.02 11:43:41.208357 [ 444907 ] {} ZooKeeperClient: Finalizing session 189. finalization_started: false, queue_finished: false, reason: 'Destructor called'
2023.08.02 11:43:41.211586 [ 444907 ] {} : virtual int DB::ClusterCopierApp::main(const std::vectorstd::string &): Code: 62. DB::Exception: Syntax error (storage definition): failed at position 1 ('rand'): rand(). Expected one of: storage definition, ENGINE, PARTITION BY, PRIMARY KEY, ORDER BY, SAMPLE BY, TTL. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below):
(version 23.6.2.18 (official build))
2023.08.02 11:43:41.211835 [ 444907 ] {} Application: Uninitializing subsystem: Logging Subsystem
2023.08.02 11:43:41.212068 [ 444908 ] {} BaseDaemon: Received signal -2
2023.08.02 11:43:41.212278 [ 444908 ] {} BaseDaemon: Stop SignalListener thread
keeper.xml
task.xml
The text was updated successfully, but these errors were encountered: