[
https://issues.apache.org/jira/browse/BEAM-7722?focusedWorklogId=275798&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-275798
]
ASF GitHub Bot logged work on BEAM-7722:
----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Jul/19 10:55
Start Date: 12/Jul/19 10:55
Worklog Time Spent: 10m
Work Description: mxm commented on pull request #9043: [BEAM-7722] Add a
Python FlinkRunner that fetches and uses released artifacts.
URL: https://github.com/apache/beam/pull/9043#discussion_r302906277
##########
File path: sdks/python/apache_beam/runners/portability/flink_runner.py
##########
@@ -0,0 +1,127 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+"""A runner for executing portable pipelines on Flink."""
+
+from __future__ import absolute_import
+from __future__ import print_function
+
+import logging
+import os
+import shutil
+
+from distutils.version import LooseVersion
+#from future.moves.urllib.request import
+from future.moves.urllib.request import urlopen, URLError
+
+from apache_beam.version import __version__ as beam_version
+from apache_beam.options import pipeline_options
+from apache_beam.runners.portability import job_server
+from apache_beam.runners.portability import portable_runner
+
+
+PUBLISHED_FLINK_VERSIONS = ['1.6', '1.7', '1.8']
+MAVEN_REPOSITORY = 'https://repo.maven.apache.org/maven2/org/apache/beam/'
+MAVEN_FLINK_JOB_SERVER_TEMPLATE =
'{maven_repo}beam-runners-flink-{flink_version}-job-server/{beam_version}/beam-runners-flink-{flink_version}-job-server-{beam_version}.jar'
+DEV_FLINK_JOB_SERVER_TEMPLATE =
'{project_root}/runners/flink/{flink_version}/job-server/build/libs/beam-runners-flink-{flink_version}-job-server-{beam_version}-SNAPSHOT.jar'
+JAR_CACHE = os.path.expanduser("~/.apache_beam/cache")
+
+
+class FlinkRunner(portable_runner.PortableRunner):
+ def default_job_server(self, options):
+ return FlinkJarJobServer(options)
+
+
+class FlinkRunnerOptions(pipeline_options.PipelineOptions):
Review comment:
Those were previously removed in favor of the option fetching from the job
service. It still makes sense to at least have a minimal version of the options
here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 275798)
Time Spent: 20m (was: 10m)
> Simplify running of Beam Python on Flink
> ----------------------------------------
>
> Key: BEAM-7722
> URL: https://issues.apache.org/jira/browse/BEAM-7722
> Project: Beam
> Issue Type: Test
> Components: sdk-py-core
> Reporter: Robert Bradshaw
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently this requires building and running several processes. We should be
> able to automate most of this away.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)