pyflink连接kafka示例代码

PyFlink连接Kafka的示例代码如下:from pyflink.datastream import StreamExecutionEnvironment from pyflink.table import StreamTableEnvironment, DataTypes from pyflink.table.descriptors import Kafka# 创建流执行环境 env = StreamExecutionEnvironment.get_execution_environment()

创建表环境

t_env = StreamTableEnvironment.create

你可能感兴趣的:(kafka,大数据,分布式,hadoop)