chamikaramj commented on a change in pull request #16613:
URL: https://github.com/apache/beam/pull/16613#discussion_r802156502
##########
File path: sdks/python/apache_beam/transforms/external.py
##########
@@ -694,12 +695,31 @@ class JavaJarExpansionService(object):
def __init__(self, path_to_jar, extra_args=None, classpath=None):
self._path_to_jar = path_to_jar
self._extra_args = extra_args
- self._classpath = classpath
+ self._classpath = classpath or []
self._service_count = 0
+ @staticmethod
+ def _expand_jars(jar):
+ if glob.glob(jar):
+ return glob.glob(jar)
+ elif isinstance(jar, str) and (jar.startswith('http://') or
+ jar.startswith('https://')):
+ return [jar]
+ else:
+ try:
+ group_id, artifact_id, version = jar.split(':')
+ except ValueError:
+ # If we are not able to
Review comment:
Seems to be unresolved for the comment "If we are not able to" above ?
(nit)
##########
File path: sdks/python/apache_beam/transforms/external.py
##########
@@ -709,11 +729,21 @@ def __enter__(self):
if self._extra_args is None:
self._extra_args = self._default_args()
# Consider memoizing these servers (with some timeout).
+ logging.info(
+ 'Starting a JAR-based expansion service from JAR %s and '
+ 'with classpath: %s',
Review comment:
Not resolved ?
--
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]