上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 48 下一页
摘要: 知识点: 一致性:https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/connectors/guarantees.html env.setStateBackend( new FsStateBackend("hdfs://u 阅读全文
posted @ 2021-01-04 10:48 小白啊小白,Fighting 阅读(966) 评论(0) 推荐(0) 编辑
摘要: 知识点: Flink 为算子状态(operator state)提供三种基本数据结构:  列表状态(List state): 将状态表示为一组数据的列表。  联合列表状态(Union list state): 也将状态表示为数据的列表。它与常规列表状态的区别在于,在发生故障时,或者从保 存点(s 阅读全文
posted @ 2021-01-04 10:47 小白啊小白,Fighting 阅读(2071) 评论(0) 推荐(0) 编辑
摘要: 1、主类 package com.example.demo.flink; import com.example.demo.flink.impl.CountAverageWithAggregateState; import com.example.demo.flink.impl.CountAverag 阅读全文
posted @ 2021-01-04 10:45 小白啊小白,Fighting 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 1、主类 package com.example.demo.flink; import com.example.demo.flink.impl.CountAverageWithMapState; import com.example.demo.flink.impl.CountAverageWithR 阅读全文
posted @ 2021-01-04 10:43 小白啊小白,Fighting 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: 1、主类 package com.example.demo.flink; import com.example.demo.flink.impl.CountAverageWithMapState; import com.example.demo.flink.impl.CountAverageWithV 阅读全文
posted @ 2021-01-04 10:41 小白啊小白,Fighting 阅读(6754) 评论(0) 推荐(0) 编辑
摘要: 1、主类 package com.example.demo.flink; import com.example.demo.flink.impl.CountAverageWithListState; import com.example.demo.flink.impl.CountAverageWith 阅读全文
posted @ 2021-01-04 10:39 小白啊小白,Fighting 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 1、主类 package com.example.demo.flink; import com.example.demo.flink.impl.CountAverageWithValueState; import org.apache.flink.api.common.functions.FlatM 阅读全文
posted @ 2021-01-04 10:38 小白啊小白,Fighting 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 1、直接执行方式 #! /bin/bash #首先启动nc # nc -lk 5000 (注意,请在另一个窗口启动) #执行flink任务 ../bin/flink run demo.jar -d & 2、指定checkpoint点执行 #! /bin/bash #首先启动nc # nc -lk 5 阅读全文
posted @ 2020-12-30 14:11 小白啊小白,Fighting 阅读(1558) 评论(0) 推荐(0) 编辑
摘要: 1、pom.xml指定入口文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema- 阅读全文
posted @ 2020-12-29 17:16 小白啊小白,Fighting 阅读(736) 评论(0) 推荐(0) 编辑
摘要: idea方式一: a)添加flink-dist包 b)代码 import com.example.demo.flink.impl.SplitWordFunction; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.f 阅读全文
posted @ 2020-12-29 15:49 小白啊小白,Fighting 阅读(1521) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 48 下一页