flink
华山令狐虫
代码如诗
展开
-
flink sql ddl 方式创建表, 指定系统处理时间字段 proctime
函数如下:proctime AS PROCTIME() val env: StreamExecutionEnvironment = StreamExecutionEnvironment.getExecutionEnvironment val blinkStreamSettings = EnvironmentSettings.newInstance() .useBlinkPlanner() .inStreamingMode() .build()原创 2020-11-12 16:32:08 · 4737 阅读 · 0 评论 -
flink 报错 Computed columns for DDL is not supported yet!
flink 版本 1.10.1flink 报错信息如下Exception in thread "main" org.apache.flink.table.sqlexec.SqlConversionException: Computed columns for DDL is not supported yet! at org.apache.flink.table.sqlexec.SqlToOperationConverter.createTableSchema(SqlToOperationConvert原创 2020-11-12 16:26:52 · 901 阅读 · 0 评论 -
flink 1.10 source方式读取mysql
class mysql_source extends RichSourceFunction[(Long, String, Long)] { private var connection: Connection = null private var ps: PreparedStatement = null override def open(parameters: Configuration): Unit = { val driver = "com.mysql.jdbc.Driver"原创 2020-11-06 11:34:06 · 351 阅读 · 0 评论 -
flink 1.10 sql 方式 读取 mysql
ddl 方式package com.jq.wcimport org.apache.flink.streaming.api.scala._import org.apache.flink.table.api.Tableimport org.apache.flink.table.api.scala._object MysqlSource { def main(args: Array[String]): Unit = { val env: StreamExecutionEnvironmen原创 2020-11-05 09:46:44 · 717 阅读 · 0 评论 -
flink 1.10 Sql方式 读取kafka
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-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org原创 2020-11-04 16:53:19 · 1022 阅读 · 0 评论