beam-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (BEAM-10139) Add cross-language wrapper for Java's SpannerIO Write
Date Mon, 16 Nov 2020 18:10:00 GMT


ASF GitHub Bot logged work on BEAM-10139:

                Author: ASF GitHub Bot
            Created on: 16/Nov/20 18:09
            Start Date: 16/Nov/20 18:09
    Worklog Time Spent: 10m 
      Work Description: TheNeuralBit commented on a change in pull request #12611:

File path: sdks/python/apache_beam/io/gcp/
@@ -0,0 +1,635 @@
+# 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
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""PTransforms for supporting Spanner in Python pipelines.
+  These transforms are currently supported by Beam portable
+  Flink and Spark runners.
+  **Setup**
+  Transforms provided in this module are cross-language transforms
+  implemented in the Beam Java SDK. During the pipeline construction, Python SDK
+  will connect to a Java expansion service to expand these transforms.
+  To facilitate this, a small amount of setup is needed before using these
+  transforms in a Beam Python pipeline.
+  There are several ways to setup cross-language Spanner transforms.
+  * Option 1: use the default expansion service
+  * Option 2: specify a custom expansion service
+  See below for details regarding each of these options.
+  *Option 1: Use the default expansion service*
+  This is the recommended and easiest setup option for using Python Spanner
+  transforms. This option is only available for Beam 2.26.0 and later.
+  This option requires following pre-requisites before running the Beam
+  pipeline.
+  * Install Java runtime in the computer from where the pipeline is constructed
+    and make sure that 'java' command is available.
+  In this option, Python SDK will either download (for released Beam version) or
+  build (when running from a Beam Git clone) a expansion service jar and use
+  that to expand transforms. Currently Spanner transforms use the
+  'beam-sdks-java-io-google-cloud-platform-expansion-service' jar for this
+  purpose.
+  *Option 2: specify a custom expansion service*
+  In this option, you startup your own expansion service and provide that as
+  a parameter when using the transforms provided in this module.
+  This option requires following pre-requisites before running the Beam
+  pipeline.
+  * Startup your own expansion service.
+  * Update your pipeline to provide the expansion service address when
+    initiating Spanner transforms provided in this module.
+  Flink Users can use the built-in Expansion Service of the Flink Runner's
+  Job Server. If you start Flink's Job Server, the expansion service will be
+  started on port 8097. For a different address, please set the
+  expansion_service parameter.
+  **More information**
+  For more information regarding cross-language transforms see:
+  -
+  For more information specific to Flink runner see:
+  -

Review comment:
       Yeah it can be done in another PR. Filed BEAM-11269 to track this.

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:

Issue Time Tracking

    Worklog Id:     (was: 512485)
    Time Spent: 36h  (was: 35h 50m)

> Add cross-language wrapper for Java's SpannerIO Write
> -----------------------------------------------------
>                 Key: BEAM-10139
>                 URL:
>             Project: Beam
>          Issue Type: Sub-task
>          Components: cross-language, io-java-gcp, io-py-gcp
>    Affects Versions: Not applicable
>            Reporter: Piotr Szuberski
>            Assignee: Piotr Szuberski
>            Priority: P2
>              Labels: portability
>             Fix For: Not applicable
>          Time Spent: 36h
>  Remaining Estimate: 0h
> Add cross-language wrapper for Java's SpannerIO Write

This message was sent by Atlassian Jira

View raw message