Clickhouse - OOM - Clickhouse数据导入功能执行时,程序被系统杀死

问题描述

当我在执行repair数据导入功能时,程序被系统杀死了。

执行命令如下: repair

报的错误是: Clickhouse

数据文件有122g,服务器内存128G,如何让clickhouse-client --user default --password xxxxx --port 9000 -hxxx --database="bds" --input_format_allow_errors_ratio=0.1 --query="insert into ... FORMAT CSV" < /1.csv命令合理导入,希望大家帮帮忙,谢谢!

解决方法

最有可能是一个错误。您使用的是哪个 CH 版本?

尝试添加参数--input_format_parallel_parsing=0 --optimize_on_insert=0

--input_format_parallel_parsing arg                              Enable parallel parsing for some data formats.

--optimize_on_insert arg                                         Do the same transformation for inserted block of data as if merge was done on this block.