import argparse
import logging
import sys
from pyflink.common import WatermarkStrategy, Encoder, Types
from pyflink.datastream import StreamExecutionEnvironment, RuntimeExecutionMode
from pyflink.datastream.connectors.file_system import FileSource, StreamFormat, FileSink, OutputFileConfig, RollingPolicy
env = StreamExecutionEnvironment.get_execution_environment()
env.set_runtime_mode(RuntimeExecutionMode.BATCH)
# write all the data to one file
env.set_parallelism(1)
ds = env.from_source(
source=FileSource.for_record_stream_format(StreamFormat.text_line_format(),
'./test.csv')
.process_static_file_set().build(),
watermark_strategy=WatermarkStrategy.for_monotonous_timestamps(),
source_name="aaaa"
)
ds.print()
env.execute()
pyflink 读取excel
scan7242024-05-01 13:07
相关推荐
郝学胜-神的一滴2 分钟前
深度拆解Python迭代协议:从底层原理到核心实践,解锁异步编程的基石2401_833197739 分钟前
更优雅的测试:Pytest框架入门weixin_3077791321 分钟前
2025年中国研究生数学建模竞赛A题:通用神经网络处理器下的核内调度问题——解决方案与实现2501_9249526923 分钟前
Python深度学习入门:TensorFlow 2.0/Keras实战2401_8914821726 分钟前
Python多线程与多进程:如何选择?(GIL全局解释器锁详解)2401_8512729926 分钟前
用Python实现自动化的Web测试(Selenium)小陈的进阶之路31 分钟前
requests接口自动化测试Yuer202532 分钟前
EDCA OS体系下的:QAS v0.1 实验框架(Python 版)一招定胜负37 分钟前
【实战】Python + 讯飞语音识别 + 通义千问:课堂视频自动转结构化教学数据