Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

335
Views
Issues with importing large file in click-house

The following statement loads only partial data (almost 40% of actual) The error is mentioned below:

cat  dr_201604.csv | docker run -i --rm \
  --link clickhouse-server:clickhouse-server \
  yandex/clickhouse-client \
  clickhouse-client --host clickhouse-server \
    --query="INSERT INTO dlr FORMAT CSV"

Code: 117. DB::Exception: Expected end of line

read unix @->/var/run/docker.sock: read: connection reset by peer

This must be a docker issue because clickhouse website does not mention any limit on how much data can be ingested. dr_201604.csv is more than 4 GB file. If I select only 10 rows (sample.csv) then it loads without any problem.

head dr_201604.csv > sample.csv

Is there any limit that only about 800 MB data can be piped?


Update:

I tried mounting the volume in the container and still able to load exactly the same number of rows as before:

docker run -i --rm \
      --volume /home/ec2-user/:/tmp/  --entrypoint=/bin/sh \
      --link clickhouse-server:clickhouse-server \
      yandex/clickhouse-client \
       -c "cat /tmp/dr_201604.csv | clickhouse-client --host clickhouse-server --query='INSERT INTO dlr FORMAT CSV' " 
about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!