Details
-
Test
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
Flink-1.0
-
None
Description
use flink sql to operator redis ,include create redis sql etc like bellow:
tableEnv.executeSql("CREATE TABLE redis (key STRING, number BIGINT) WITH ('connector.type'='redis'," +
"'redis-mode'='cluster', 'key.ttl' = '70000','command'='INCRBY_EX','cluster-nodes'='" + REDIS_HOST + ":" + REDIS_PORT + "')");
tableEnv.executeSql("insert into redis select * from t1");