[
https://issues.apache.org/jira/browse/BEAM-8891?focusedWorklogId=365996&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-365996
]
ASF GitHub Bot logged work on BEAM-8891:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Jan/20 20:18
Start Date: 03/Jan/20 20:18
Worklog Time Spent: 10m
Work Description: ibzib commented on pull request #10403: [BEAM-8891]
Spark uber jar job server
URL: https://github.com/apache/beam/pull/10403#discussion_r362946834
##########
File path: sdks/python/apache_beam/runners/portability/spark_runner.py
##########
@@ -41,27 +43,23 @@ def run_pipeline(self, pipeline, options):
return super(SparkRunner, self).run_pipeline(pipeline, options)
def default_job_server(self, options):
- # TODO(BEAM-8139) submit a Spark jar to a cluster
+ spark_options = options.view_as(pipeline_options.SparkRunnerOptions)
+ if (spark_options.spark_submit_uber_jar
+ and not re.match(LOCAL_MASTER_PATTERN,
spark_options.spark_master_url)):
+ if sys.version_info < (3, 6):
+ raise ValueError(
+ 'spark_submit_uber_jar requires Python 3.6+, current version %s'
+ % sys.version)
+ return spark_uber_jar_job_server.SparkUberJarJobServer(
+ re.sub('^spark://', 'http://', spark_options.spark_master_url),
Review comment:
The master and rest endpoints are distinct, so I should make the rest url an
independent pipeline option before merging this PR.
----------------------------------------------------------------
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: 365996)
Time Spent: 50m (was: 40m)
> Create and submit Spark portable jar in Python
> ----------------------------------------------
>
> Key: BEAM-8891
> URL: https://issues.apache.org/jira/browse/BEAM-8891
> Project: Beam
> Issue Type: Improvement
> Components: runner-spark
> Reporter: Kyle Weaver
> Assignee: Kyle Weaver
> Priority: Major
> Labels: portability-spark
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Similar to FlinkUberJarJobServer:
> https://github.com/apache/beam/blob/master/sdks/python/apache_beam/runners/portability/flink_uber_jar_job_server.py
--
This message was sent by Atlassian Jira
(v8.3.4#803005)