ClickHouse/docs/en/operations/utilities/clickhouse-compressor.md

31 lines
631 B
Markdown
Raw Normal View History

2022-08-28 13:53:52 +00:00
---
2022-08-28 13:58:27 +00:00
slug: /en/operations/utilities/clickhouse-compressor
2022-08-29 16:19:50 +00:00
title: clickhouse-compressor
2022-08-28 13:53:52 +00:00
---
2018-12-26 15:01:26 +00:00
Simple program for data compression and decompression.
### Examples
Compress data with LZ4:
```
$ ./clickhouse-compressor < input_file > output_file
```
Decompress data from LZ4 format:
```
$ ./clickhouse-compressor --decompress < input_file > output_file
```
Compress data with ZSTD at level 5:
```
2019-04-01 16:28:20 +00:00
$ ./clickhouse-compressor --codec 'ZSTD(5)' < input_file > output_file
2018-12-26 15:01:26 +00:00
```
2019-04-01 16:36:46 +00:00
Compress data with Delta of four bytes and ZSTD level 10.
2018-12-26 15:01:26 +00:00
```
2019-04-01 16:36:46 +00:00
$ ./clickhouse-compressor --codec 'Delta(4)' --codec 'ZSTD(10)' < input_file > output_file
2018-12-26 15:01:26 +00:00
```