Comments (5)
Please provide the configuration to connect to redis.
from flink-connector-redis.
Please provide the configuration to connect to redis.
) WITH (
'connector' = 'redis',
'host' = '192.168.X.X',
'port' = '6379',
'database' = '9',
'password' = '******',
'redis-mode' = 'single',
'command' = 'hset',
'value.data.structure' = 'row',
'ttl' = '259200'
);
from flink-connector-redis.
Please provide the configuration to connect to redis.
The sendAddress method about netty v4.1 looks like this :
int | sendAddress(long address, int pos, int limit) |
---|---|
int sendAddress(long address, int pos, int limit) |
from flink-connector-redis.
The configuration is look like fine. It could be a version issue.Please try to connect to redis directly by Lettuce like this:
RedisClient client = RedisClient.create("redis://localhost"); StatefulRedisConnection<String, String> connection = client.connect(); RedisStringCommands sync = connection.sync(); String value = sync.get("key");
from flink-connector-redis.
The configuration is look like fine. It could be a version issue.Please try to connect to redis directly by Lettuce like this:
RedisClient client = RedisClient.create("redis://localhost"); StatefulRedisConnection<String, String> connection = client.connect(); RedisStringCommands sync = connection.sync(); String value = sync.get("key");
Tks, it's been resolved. Probably the reason is that my local machine is an m1 chip, so I added the netty-transport-native-epoll dependency to linux-x86_64 and everything worked fine.
from flink-connector-redis.
Related Issues (20)
- 能在入redis中增加支持原始BYTES入redis的方法么? HOT 5
- Caused by: java.lang.ClassNotFoundException: io.netty.channel.ChannelHandler HOT 5
- sink.parallelism 参数无效 HOT 1
- Lettuce API Implicit Failure HOT 1
- Flink CDC同步MySQL数据到Redis时,Redis不能同步删除数据 HOT 5
- 哨兵模式下连接失败 HOT 3
- 异常问题 HOT 6
- 报错 no match redis HOT 4
- 对于redis消费相关问题 HOT 1
- 导入依赖运行test示例报错 HOT 3
- 测试里有个flushdb操作, 跑了一下测试case,测试redis数据全没了,差点要收拾包裹走人了 HOT 1
- hash结构怎么查询 HOT 1
- How to implement exactly once in redis sink function? HOT 1
- hset命令下ttl不断重置的问题 HOT 4
- Setting `command` option in TableDescriptor leads to Java error HOT 6
- 适配flink 1.17.0 HOT 1
- 1.3.1 版本 能写入数据,但是读取不到数据 要怎么处理 HOT 2
- datastream sink的时候怎么设置ttl HOT 1
- io.lettuce.core.RedisConnectionException: Unable to connect to host:port HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flink-connector-redis.