python flink_Python + Beam + Flink

I've been trying to get the Apache Beam Portability Framework to work with Python and Apache Flink and I can't seem to find a complete set of instructions to get the environment working. Are there any references with complete list of prerequisites and steps to get a simple python pipeline working?

解决方案

Overall, for local portable runner (ULR), see the wiki, quote from there:

Run a Python-SDK Pipeline:

Compile container as a local build: ./gradlew :beam-sdks-python-container:docker

Start ULR job server, for example: ./gradlew :beam-runners-reference-job-server:run -PlogLevel=debug -PvendorLogLevel=warning . For details see the Java section in the above link.

3 Set up python environment properly. More details can be found here.

Run pipeline by using following (under folder sdk/python),

example:

python -m apache_beam.examples.wordcount\

--input=gs://dataflow-samples/shakespeare/kinglear.txt \

--output=/tmp/output \

--runner=PortableRunner \

--job_endpoint=localhost:8099 \

--experiments beam_fn_api

For Flink you need to use a different job server: ./gradlew beam-runners-flink_2.11-job-server:runShadow. The host:port is localhost:8099,

Relevant email discussions: one, two.

Possibly worth looking at some code: one, two.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值