Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File table engine may open too many files at once. #8857

Closed
alexey-milovidov opened this issue Jan 27, 2020 · 1 comment · Fixed by #8861
Closed

File table engine may open too many files at once. #8857

alexey-milovidov opened this issue Jan 27, 2020 · 1 comment · Fixed by #8861
Labels
bug Confirmed user-visible misbehaviour in official release

Comments

@alexey-milovidov
Copy link
Member

alexey-milovidov commented Jan 27, 2020

I almost downloaded the data from http://www.gharchive.org/
64901 files, 839 GiB in size.

But I cannot simply process this data as is:

$ clickhouse-local --query "SELECT * FROM file('*.json.gz', TSV, 'data String') LIMIT 10"
Code: 76, e.displayText() = DB::ErrnoException: Cannot open file /opt/milovidov/example_datasets/gharchive/2018-12-30-10.json.gz, errno: 24, strerror: Too many open files (version 20.2.1.1)
@alexey-milovidov alexey-milovidov added the bug Confirmed user-visible misbehaviour in official release label Jan 27, 2020
@alexey-milovidov
Copy link
Member Author

Now it works like a charm. Even with data in garbage format json.gz it is processed with more than 500 MB/sec on old E5-2650v2 and RAID-5 of 8 HDDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed user-visible misbehaviour in official release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant