Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Flink-1.0
-
None
-
bahir-master branch
-
Important
Description
RedisTableSinkFactory unsupport connect with redis cluster by password in cluster mode.
proposal:
1. RedisTableSinkFactory#supportedProperties:
add: properties.add("cluster.password");
2. FlinkJedisClusterConfigHandler#createFlinkJedisConfig:
add: String clusterPassword = properties.get("cluster.password");
modify:
if(clusterPassword !=null && !"".equals(clusterPassword))
return new FlinkJedisClusterConfig.Builder().setNodes(nodes).setPassword(clusterPassword).build();
else
return new FlinkJedisClusterConfig.Builder().setNodes(nodes).build();