pyflink connection kafka sample code

The sample code for connecting PyFlink to Kafka is as follows: from pyflink.datastream import StreamExecutionEnvironment from pyflink.table import StreamTableEnvironment, DataTypes from pyflink.table.descriptors import Kafka# Create a stream execution environment env = StreamExecutionEnvironment.get_execution_environment()

Create table environment

t_env = StreamTableEnvironment.create

おすすめ

転載: blog.csdn.net/weixin_42613360/article/details/129536357