Reputation: 179
I compressed the data using lz4 java library (https://github.com/lz4/lz4-java) and want to decompress it in python using lz4 library(https://pypi.org/project/lz4/). And the compressed data is available in redis cluster. When I execute the following code:
from rediscluster import StrictRedisCluster
startup_nodes = [{"host": "my_host", "port": "7002"}]
rc = StrictRedisCluster(startup_nodes=startup_nodes, decode_responses=False)
result=rc.hget("key","field")
from lz4.frame import compress, decompress
decompress(result)
I am getting the error:"LZ4F_getFrameInfo failed with code: ERROR_frameType_unknown
What am I doing wrong? "
Upvotes: 1
Views: 8625
Reputation: 179
Got the solution. You can see the following link if you are facing the same problem:
https://github.com/python-lz4/python-lz4/issues/143
Upvotes: 1