I got few errors from redis streams first is:
org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR unknown command 'XREADGROUP'
and the second is when I try to create stream publisher but I got error
org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR unknown command 'XADD'
my function for publish data is really simple
public void test1(){
ObjectRecord<String, String> keyStream = StreamRecords.newRecord()
.ofObject(UUID.randomUUID().toString())
.withStreamKey("keyStream");
redisTemplate.opsForStream()
.add(keyStream);
}
But on function add this error ocurse. And If anybody can help me with this problem please let me know, thanks
2
Answers
In the console,run
And you can check the redis version. Redis stream is only supported with Redis version > 5
I have a similar problem
UPD: my problem was solved of downgrading redis to version 5.0.12