You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "88fantasy (via GitHub)" <gi...@apache.org> on 2026/08/12 23:13:06 UTC

[PR] [Console] Fix streampark-flink-sqlclient artifactId mismatch in assembly packaging and jar lookup [streampark]

88fantasy opened a new pull request, #4485:
URL: https://github.com/apache/streampark/pull/4485

   ## What changes were proposed in this pull request
   
   Issue Number: close #4480
   
   Fixes `POST /flink/pipe/build` failing with `can't found streampark-flink-sqlclient jar in .../client` for every Flink SQL application.
   
   #4462 dropped the Scala cross-build suffix from `streampark-flink-sqlclient`'s artifactId, but two other places that reference the old, suffixed coordinate were never updated to match:
   
   1. `streampark-console-service/src/main/assembly/assembly.xml`'s `dependencySet` `<exclude>`/`<include>` patterns (which decide whether the jar lands in `lib/` vs `client/`).
   2. `ServiceHelper#getFlinkSqlClientJar()`'s filename-matching regex (used at runtime to locate the jar once the console is deployed).
   
   Both fixes are required together — fixing only the assembly descriptor still leaves the console unable to find the (correctly placed) jar via the stale regex.
   
   ## Brief change log
   
   - `assembly.xml`: change `org.apache.streampark:streampark-flink-sqlclient_${scala.binary.version}` → `org.apache.streampark:streampark-flink-sqlclient` in both the `lib/` exclude list and the `client/` include list. `streampark-spark-sqlclient` is untouched (still Scala cross-built, keeps its suffix).
   - `ServiceHelper.java`: change the regex from `streampark-flink-sqlclient_%s-.*\.jar` (formatted with `flinkEnv.getScalaVersion()`) to the literal `streampark-flink-sqlclient-.*\.jar`.
   
   ## Verifying this change
   
   Manually verified end-to-end against a real Flink 2.2.1 standalone cluster:
   
   - Before this change: fresh `dist` build's `client/` only contains `streampark-spark-sqlclient_2.12-*.jar`; `streampark-flink-sqlclient-*.jar` incorrectly ends up in `lib/`. `POST /flink/pipe/build` fails immediately with `can't found streampark-flink-sqlclient jar in .../client`.
   - After this change: rebuilt `dist` tarball's `client/` contains both `streampark-flink-sqlclient-3.0.0-SNAPSHOT.jar` and `streampark-spark-sqlclient_2.12-3.0.0-SNAPSHOT.jar`; startup log shows `EnvInitializer` successfully loading `streampark-flink-sqlclient-3.0.0-SNAPSHOT.jar to /data/streampark/workspace/client`; `POST /flink/pipe/build` proceeds past the jar-lookup step (see #4481 for the next bug it then hits, fixed separately in the PR for that issue).
   
   `./mvnw -pl streampark-console/streampark-console-service clean compile checkstyle:check spotless:check` passes with 0 violations.
   
   ## Does this pull request potentially affect one of the following parts
   
   - Dependencies (does it add or upgrade a dependency): no
   - Anything that affects deployment: yes — changes which jar lands in `client/` vs `lib/` in the distribution tarball (this is the bug fix itself: `streampark-flink-sqlclient` was landing in the wrong directory)
   - The persistence of application state: no
   - The direction of network connections: no
   - Anything that affects any api: no
   


-- 
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: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Console] Fix streampark-flink-sqlclient artifactId mismatch in assembly packaging and jar lookup [streampark]

Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4485:
URL: https://github.com/apache/streampark/pull/4485#issuecomment-5273893495

   ## [![Quality Gate Failed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-failed-20px.png 'Quality Gate Failed')](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4485) **Quality Gate failed**  
   Failed conditions  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/failed-16px.png '') [B Maintainability Rating on New Code](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4485) (required ≥ A)  
     
   <!-- sqra:qg_revision=2f45992bef0c6a3cbc7fcb61362014f4e87c9bf35abeafb84b56be16889439c0 -->
   <!-- sqra-placement-anchor -->
   [See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4485)
   
   ##   
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/light_bulb-16px.png '') Catch issues before they fail your Quality Gate with our IDE extension ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/sonarlint-16px.png '') [SonarQube for IDE](https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=pull-request)
   
   


-- 
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: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Console] Fix streampark-flink-sqlclient artifactId mismatch in assembly packaging and jar lookup [streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys merged PR #4485:
URL: https://github.com/apache/streampark/pull/4485


-- 
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: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org