[
https://issues.apache.org/jira/browse/KAFKA-20881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai updated KAFKA-20881:
-----------------------------------
Fix Version/s: (was: 4.3.2)
> 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: majialong
> Priority: Major
> Fix For: 4.4.0
>
>
> 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)