[ 
https://issues.apache.org/jira/browse/KAFKA-20881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18100958#comment-18100958
 ] 

Chia-Ping Tsai commented on KAFKA-20881:
----------------------------------------

from 
https://github.com/apache/kafka/pull/21337/changes#diff-d2c12039d8efedbd1f5ed5ec45dccfd599a32d79b7aa13887991e370ce24bf8dR75

> System tests fail to load connect-file plugin due to javadoc.jar conflict
> -------------------------------------------------------------------------
>
>                 Key: KAFKA-20881
>                 URL: https://issues.apache.org/jira/browse/KAFKA-20881
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Major
>
> KAFKA-20032 makes the javadoc jar always be generated, so the following code 
> used to search the connect-file jar does not work now.
> {code:py}
>     def append_module_to_classpath(self, module):
>         cwd = os.getcwd()
>         relative_path = "/connect/" + module + "/build/libs/"
>         local_dir = cwd + relative_path
>         lib_dir = self.path.home() + relative_path
>         for pwd, dirs, files in os.walk(local_dir):
>             for file in files:
>                 if file.endswith(".jar"):
>                     # Use the expected directory on the node instead of the 
> path in the driver node
>                     file_path = lib_dir + file
>                     self.logger.info("Appending %s to Connect worker's 
> CLASSPATH" % file_path)
>                     return "export CLASSPATH=${CLASSPATH}:%s; " % file_path
>         self.logger.info("Jar not found within %s" % local_dir)
>         return ""
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to