上一页 1 2 3 4 5 6 ··· 23 下一页
摘要: import java.sql.{Connection, DriverManager, PreparedStatement} import it.bigdata.flink.study.SensorReding import org.apache.flink.configuration.Config 阅读全文
posted @ 2021-06-24 19:28 nohert 阅读(542) 评论(0) 推荐(0) 编辑
摘要: import it.bigdata.flink.study.SensorReding import org.apache.flink.api.common.serialization.SimpleStringEncoder import org.apache.flink.core.fs.Path i 阅读全文
posted @ 2021-06-24 19:12 nohert 阅读(112) 评论(0) 推荐(0) 编辑
摘要: import java.util import it.bigdata.flink.study.SensorReding import org.apache.flink.api.common.functions.RuntimeContext import org.apache.flink.stream 阅读全文
posted @ 2021-06-24 19:11 nohert 阅读(281) 评论(0) 推荐(0) 编辑
摘要: class MyRichMapper extends RichMapFunction[SensorReding,String]{ override def open(parameters: Configuration): Unit = { //做一些初始化操作,比如数据库的连接 // getRunt 阅读全文
posted @ 2021-06-24 19:06 nohert 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 数据 sensor_1,1547718101,35.8 sensor_1,1547718102,22.2 sensor_1,1547718101,55.3 sensor_1,1547718102,24.1 sensor_1,1547718103,57 sensor_1,1547718103,58 s 阅读全文
posted @ 2021-06-24 19:03 nohert 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 数据: sensor_1,1547718101,35.8 sensor_1,1547718102,22.2 sensor_1,1547718101,55.3 sensor_1,1547718102,24.1 sensor_1,1547718103,57 sensor_1,1547718103,58 阅读全文
posted @ 2021-06-24 18:56 nohert 阅读(173) 评论(0) 推荐(0) 编辑
摘要: import org.apache.flink.api.common.functions.{FilterFunction, ReduceFunction, RichMapFunction} import org.apache.flink.configuration.Configuration imp 阅读全文
posted @ 2021-06-24 18:52 nohert 阅读(214) 评论(0) 推荐(0) 编辑
摘要: import org.apache.flink.api.common.functions.{FilterFunction, ReduceFunction, RichMapFunction} import org.apache.flink.configuration.Configuration imp 阅读全文
posted @ 2021-06-24 18:49 nohert 阅读(234) 评论(0) 推荐(0) 编辑
摘要: import org.apache.flink.api.scala.ExecutionEnvironment import org.apache.flink.api.scala._ object WordCount { /** * 第一个flink,wordcount * @param args * 阅读全文
posted @ 2021-06-24 18:46 nohert 阅读(62) 评论(0) 推荐(0) 编辑
摘要: import org.apache.flink.api.java.utils.ParameterTool import org.apache.flink.streaming.api.scala.{DataStream, StreamExecutionEnvironment} import org.a 阅读全文
posted @ 2021-06-24 18:44 nohert 阅读(37) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 23 下一页