Skip to content

Fluss client shouldn't load plugin by thread contextclassloader. #1262

@loserwang1024

Description

@loserwang1024

Search before asking

  • I searched in the issues and found nothing similar.

Fluss version

0.7.0 (latest release)

Please describe the bug 🐞

Currently, when we put fluss connector into flink lib, the job preforms well. When I run with "--jar" or "add jar", the sql-client will fail with :

ERROR] Could not execute SQL statement. Reason:
com.alibaba.fluss.metadata.ValidationException: No plugin for the protocol 'sasl' is found in the classpath

It's because when sql gateway run(in flink 1.20), the thread classloader is not the user classloader. Thus, though user classloader can loaded flink-fluss-1.20.jar, but the thread classloader cannot do it.

Solution

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions