【发布时间】:2021-07-22 09:53:57
【问题描述】:
当我将一个 120g 的文本文件导入到Clickhouse 时,其中有 4 亿条数据。导入一亿多数据后,我就被杀了。
导入语句如下:
clickhouse-client --user default --password xxxxx --port 9000 -hbd4 --database="dbs" --input_format_allow_errors_ratio=0.1 --query="insert into ... FORMAT CSV" < /1.csv
错误如下:
2021.04.29 10:20:23.135790 [ 19694 ] {} <Fatal> Application: Child process was terminated by signal 9 (KILL). If it is not done by 'forcestop' command or manually, the possible cause is OOM Killer (see 'dmesg' and look at the '/var/log/kern.log' for the details).
是不是导入的文件太大,爆内存?我应该再次细分文件吗?
【问题讨论】:
标签: database clickhouse