Flink Redis Sink 基本用法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flink Redis Sink 基本用法相关的知识,希望对你有一定的参考价值。

参考技术A flink提供了专门操作redis的Redis Sink

Redis Sink 提供用于向Redis发送数据的接口的类。接收器可以使用三种不同的方法与不同类型的Redis环境进行通信:

Redis Sink 核心类是 RedisMappe 是一个接口,使用时我们要编写自己的redis操作类实现这个接口中的三个方法

使用RedisCommand设置数据结构类型时和redis结构对应关系。

Flink Redis Connector

flink with rabbitmq,sink source mysql redis es

flink-docker
https://github.com/melentye/flink-docker

 

https://hub.docker.com/_/flink/?tab=description

 

https://shekharsingh.com/blog/2016/11/12/apache-flink-rabbimq-streams-processor.html

http://www.54tianzhisheng.cn/2019/01/20/Flink-RabbitMQ-sink/
https://github.com/tydhot/Kafka-Flink-Rabbitmq-Demo
https://github.com/rootcss/flink-rabbitmq

flink-aggregate---(sum,max,keyby)
https://segmentfault.com/a/1190000017571429

flink-to-mysql
http://www.54tianzhisheng.cn/2019/01/15/Flink-MySQL-sink/


table data of mysql is fixed when start to query, so the job should be a flink batch job.

If you want to read the incoming data if there is incoming data, flink can not handle this kind of case, because flink does not know the incoming data unless you monitor binlog.

You have to use canal to sync up the binlog from mysql to kafka, and run a flink streaming job reading data from kafka. This is the best solution.

 

flinks-to-elastic-search
http://lxwei.github.io/posts/Flink(5)-Sink-%E4%BB%8B%E7%BB%8D%E4%B8%8E%E5%AE%9E%E8%B7%B5.html


flink-redis sink
https://blog.csdn.net/xianpanjia4616/article/details/82534369

flink-redis
https://www.cnblogs.com/jiashengmei/p/9084057.html

以上是关于Flink Redis Sink 基本用法的主要内容,如果未能解决你的问题,请参考以下文章

Flink Transformation 操作

pythonredis基本命令和基本用法详解

Flink之Redis的安装及RedisSink的用法

redis基本用法

1.31.Flink自定义rocketmq(source/sink)+自定义redis source和sink

flink with rabbitmq,sink source mysql redis es