最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

sql - Why do I get a read timeout when trying to insert data into Clickhouse? - Stack Overflow

programmeradmin3浏览0评论

I'm trying to load some data from S3 into Clickhouse:

INSERT INTO MY_TABLE
SELECT * 
FROM s3('/*.parquet',
        'Parquet', extra_credentials(role_arn = 'arn:aws:iam::xxx'));

But I always get "read timed out" from Clickhouse.

I've tried to execute the select statement and it could return data as expected. How should I resolve this?

I'm trying to load some data from S3 into Clickhouse:

INSERT INTO MY_TABLE
SELECT * 
FROM s3('https://xxx.s3.amazonaws/xxx/*.parquet',
        'Parquet', extra_credentials(role_arn = 'arn:aws:iam::xxx'));

But I always get "read timed out" from Clickhouse.

I've tried to execute the select statement and it could return data as expected. How should I resolve this?

Share Improve this question edited yesterday marc_s 755k184 gold badges1.4k silver badges1.5k bronze badges asked 2 days ago RinzeRinze 1 New contributor Rinze is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

1 Answer 1

Reset to default 0

Looks like this is a client-side timeout, check your query in system.processes

try to use clickhouse-client --receive-timeout=86400 -q "INSERT INTO MY_TABLE SELECT * FROM s3('https://xxx.s3.amazonaws/xxx/*.parquet', 'Parquet', extra_credentials(role_arn = 'arn:aws:iam::xxx'));

发布评论

评论列表(0)

  1. 暂无评论