[ 
https://issues.apache.org/jira/browse/BEAM-5467?focusedWorklogId=156540&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-156540
 ]

ASF GitHub Bot logged work on BEAM-5467:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Oct/18 15:50
            Start Date: 20/Oct/18 15:50
    Worklog Time Spent: 10m 
      Work Description: tweise closed pull request #6767: [BEAM-5467] Set 
parallelism in Flink test runner to avoid running out of resources with 
embedded Flink.
URL: https://github.com/apache/beam/pull/6767
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/sdks/python/apache_beam/runners/portability/flink_runner_test.py 
b/sdks/python/apache_beam/runners/portability/flink_runner_test.py
index b321e73e250..b9154073c01 100644
--- a/sdks/python/apache_beam/runners/portability/flink_runner_test.py
+++ b/sdks/python/apache_beam/runners/portability/flink_runner_test.py
@@ -26,6 +26,7 @@
 
 import apache_beam as beam
 from apache_beam.options.pipeline_options import DebugOptions
+from apache_beam.options.pipeline_options import FlinkOptions
 from apache_beam.options.pipeline_options import PortableOptions
 from apache_beam.options.pipeline_options import StandardOptions
 from apache_beam.runners.portability import portable_runner
@@ -71,7 +72,6 @@ def _subprocess_command(cls, port):
             'java',
             '-jar', flink_job_server_jar,
             '--artifacts-dir', tmp_dir,
-            '--job-host', 'localhost',
             '--job-port', str(port),
             '--artifact-port', '0',
         ]
@@ -85,6 +85,7 @@ def get_runner(cls):
     def create_options(self):
       options = super(FlinkRunnerTest, self).create_options()
       options.view_as(DebugOptions).experiments = ['beam_fn_api']
+      options.view_as(FlinkOptions).parallelism = 1
       # Default environment is Docker.
       if environment_type == 'process':
         options.view_as(PortableOptions).environment_type = 'PROCESS'


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 156540)
    Time Spent: 13h 40m  (was: 13.5h)

> Python Flink ValidatesRunner job fixes
> --------------------------------------
>
>                 Key: BEAM-5467
>                 URL: https://issues.apache.org/jira/browse/BEAM-5467
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-flink
>            Reporter: Thomas Weise
>            Assignee: Thomas Weise
>            Priority: Minor
>              Labels: portability-flink
>          Time Spent: 13h 40m
>  Remaining Estimate: 0h
>
> Add status to README
> Rename script and job for consistency
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to