Skip to content

feat!: Ship runner uber JAR in Flink lib/#317

Draft
ferenc-csaky wants to merge 1 commit intomainfrom
chore/ship-uber-jar-in-lib
Draft

feat!: Ship runner uber JAR in Flink lib/#317
ferenc-csaky wants to merge 1 commit intomainfrom
chore/ship-uber-jar-in-lib

Conversation

@ferenc-csaky
Copy link
Copy Markdown
Collaborator

No description provided.

@ferenc-csaky ferenc-csaky force-pushed the chore/ship-uber-jar-in-lib branch from 5a334ad to 053dd6b Compare April 22, 2026 16:05
@ferenc-csaky ferenc-csaky force-pushed the chore/ship-uber-jar-in-lib branch from 053dd6b to f91c6fd Compare April 22, 2026 17:17
@ferenc-csaky ferenc-csaky marked this pull request as draft April 22, 2026 19:40
Copy link
Copy Markdown
Collaborator

@velo velo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can likely test a snapshot


RUN rm -rf /opt/flink/lib/flink-table-planner-loader-*.jar \
&& ln -s /opt/flink/plugins/flink-sql-runner/flink-sql-runner.uber.jar /opt/flink/flink-sql-runner.jar \
&& echo 'UEsDBBQACAgIAG2UllwAAAAAAAAAAAAAAAAUAAQATUVUQS1JTkYvTUFOSUZFU1QuTUb+ygAA803My0xLLS7RDUstKs7Mz7NSMNQz4HIuSk0sSU3Rdaq0UkjLyczL1i0uzNEtKs3LSy3i4gIAUEsHCL/cUjU2AAAANAAAAFBLAQIUABQACAgIAG2Ully/3FI1NgAAADQAAAAUAAQAAAAAAAAAAAAAAAAAAABNRVRBLUlORi9NQU5JRkVTVC5NRv7KAABQSwUGAAAAAAEAAQBGAAAAfAAAAAAA' | base64 -d > /opt/flink/noop.jar \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scary =)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is the bas64-encoded binary content of a practically empty JAR that only contains META-INF/MANIFEST.MF with the below content:

Manifest-Version: 1.0
Created-By: flink-sql-runner

It's ugly, but IMO the simplest way to generate it on the fly. :)

This trick is necessary, cause the flink run command requires a JAR, even we won't have one to pass here as we move it to /lib.

@ferenc-csaky
Copy link
Copy Markdown
Collaborator Author

we can likely test a snapshot

Yep, I left it as draft so you have room to try this out and experiment with this on cloud.

@ferenc-csaky ferenc-csaky changed the title chore: Ship runner uber JAR in Flink lib/ feat!: Ship runner uber JAR in Flink lib/ Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants