Unsupported compression method for this build: LZ4

860 views
Skip to first unread message

Ameziane Hamlat

unread,
Jun 22, 2022, 6:04:24 AM6/22/22
to rocksdb
Hi everyone,
I have this message when I try to scan my database created with a java application using rocksdb jni lib : Unsupported compression method for this build: LZ4

ldb --db=/data/database scan
Failed: Not implemented: Unsupported compression method for this build: LZ4

I tested with snappy and I had the same output message.

Here are the steps :
  • git clone g...@github.com:facebook/rocksdb.git
  • cd rocksdb
  • make ldb sst_dump
  • cd ldb /usr/local/bin
  • cd sst_dump /usr/local/bin
ldb --db=/data/database scan
Failed: Not implemented: Unsupported compression method for this build: LZ4

Do you any idea how to resolve this issue ? 

Jan Steemann

unread,
Jun 22, 2022, 6:09:51 AM6/22/22
to rocksdb
Hi,
when building RocksDB and its tools (e.g. ldb) from source, both LZ4 support and Snappy support are turned off by default.
In order to enable them for your build, you will need to set the corresponding CMake variables, and also make sure that the libraries can be found by CMake:
Best
J

Jan Steemann

unread,
Jun 22, 2022, 6:22:11 AM6/22/22
to rocksdb
Btw if you are not using CMake, but just make, if may be enough to install the LZ4 and/or Snappy libraries via the OS package manager, as described here:

I can't comment much on this because I am building using CMake.

Ameziane Hamlat

unread,
Jun 22, 2022, 9:14:37 AM6/22/22
to rocksdb
Thanks Jan, I installed lz4 on my VM and then forced the build with make, but still have the same error.
Reply all
Reply to author
Forward
0 new messages