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

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

                Author: ASF GitHub Bot
            Created on: 24/Dec/19 00:27
            Start Date: 24/Dec/19 00:27
    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_r361032310
 
 

 ##########
 File path: 
sdks/python/apache_beam/runners/portability/spark_uber_jar_job_server_test.py
 ##########
 @@ -0,0 +1,209 @@
+#
+# 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.
+#
+from __future__ import absolute_import
+from __future__ import print_function
+
+import contextlib
+import logging
+import os
+import sys
+import tempfile
+import unittest
+import zipfile
+
+import freezegun
+import grpc
+import requests_mock
+
+from apache_beam.options import pipeline_options
+from apache_beam.portability.api import beam_artifact_api_pb2
+from apache_beam.portability.api import beam_artifact_api_pb2_grpc
+from apache_beam.portability.api import beam_job_api_pb2
+from apache_beam.portability.api import beam_runner_api_pb2
+from apache_beam.runners.portability import spark_uber_jar_job_server
+
+
[email protected]
+def temp_name(*args, **kwargs):
+  with tempfile.NamedTemporaryFile(*args, **kwargs) as t:
+    name = t.name
+  yield name
+  if os.path.exists(name):
+    os.unlink(name)
+
+def spark_job():
+  return spark_uber_jar_job_server.SparkBeamJob(
+      'http://host:6066', '', '', '', '', '',
+      pipeline_options.SparkRunnerOptions())
+
+
[email protected](sys.version_info < (3, 6), "Requires Python 3.6+")
+class SparkUberJarJobServerTest(unittest.TestCase):
 
 Review comment:
   There's not actually that much shared code between the two, so I'm going to 
leave the tests as they are.
 
----------------------------------------------------------------
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: 362817)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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: 10m
>  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)

Reply via email to