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

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

                Author: ASF GitHub Bot
            Created on: 30/Jan/20 01:11
            Start Date: 30/Jan/20 01:11
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on pull request #10708: [BEAM-9213] 
throw error when flink_submit_uber_jar and not flink_master
URL: https://github.com/apache/beam/pull/10708#discussion_r372715663
 
 

 ##########
 File path: sdks/python/apache_beam/runners/portability/flink_runner.py
 ##########
 @@ -51,8 +51,11 @@ def default_job_server(self, options):
     flink_master = self.add_http_scheme(
         flink_options.flink_master)
     flink_options.flink_master = flink_master
-    if (flink_options.flink_submit_uber_jar
-        and flink_master not in MAGIC_HOST_NAMES):
+    if flink_options.flink_submit_uber_jar:
+      if flink_master in MAGIC_HOST_NAMES:
+        raise ValueError(
+            'Cannot use flink_submit_uber_jar with flink_master %s'
+            % flink_master)
 
 Review comment:
   On the other hand, I think we may want to make flink_submit_uber_jar the 
default, in which case this logic wouldn't make sense. 
 
----------------------------------------------------------------
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: 379113)
    Time Spent: 40m  (was: 0.5h)

> FlinkRunner ignores --flink_submit_uber_jar when master unset
> -------------------------------------------------------------
>
>                 Key: BEAM-9213
>                 URL: https://issues.apache.org/jira/browse/BEAM-9213
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-flink
>            Reporter: Kyle Weaver
>            Assignee: Kyle Weaver
>            Priority: Minor
>              Labels: portability-flink
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Instead, an error should be thrown to let the user know that 
> flink_submit_uber_jar is incompatible with auto/local master.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to