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

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

                Author: ASF GitHub Bot
            Created on: 30/Jun/21 12:22
            Start Date: 30/Jun/21 12:22
    Worklog Time Spent: 10m 
      Work Description: je-ik commented on a change in pull request #15099:
URL: https://github.com/apache/beam/pull/15099#discussion_r661409594



##########
File path: sdks/python/apache_beam/io/kafka.py
##########
@@ -96,8 +96,16 @@
      ('commit_offset_in_finalize', bool), ('timestamp_policy', str)])
 
 
-def default_io_expansion_service():
-  return BeamJarExpansionService('sdks:java:io:expansion-service:shadowJar')
+def default_io_expansion_service(args = None):
+  extra_args = None
+  if args:
+    if type(args) != type({}):
+      raise ValueError(
+          "Invalid value, expected dictionary for 
default_expansion_service_args, got %s"
+          % (type(args), ))
+    extra_args = ['{{PORT}}'] + list(map(lambda i: "--%s=%s" % (i[0], i[1]), 
args.items()))

Review comment:
       :+1:




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 617018)
    Time Spent: 1h 20m  (was: 1h 10m)

> Python Kafka IO: allow to specify command line arguments for default 
> expansion service
> --------------------------------------------------------------------------------------
>
>                 Key: BEAM-12539
>                 URL: https://issues.apache.org/jira/browse/BEAM-12539
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>    Affects Versions: 2.31.0
>            Reporter: Jan Lukavský
>            Assignee: Jan Lukavský
>            Priority: P2
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> In order to be able to run ExpansionService with specific command line 
> arguments we need to be able to specify these arguments when creating read or 
> write transform.



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

Reply via email to