Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Optimization][script] Optimizing the classpath in the Dinky startup … #3077

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

JiaLiangC
Copy link
Contributor

@JiaLiangC JiaLiangC commented Jan 27, 2024

…script #3076
close #3076

Purpose of the pull request

related issue
#3076

Optimization of the classpath in the Dinky startup script

Due to the use of relative paths in the classpath, launching Dinky can only be done from the Dinky installation directory, which can be inconvenient in some scenarios. The current classpath is:

CLASS_PATH=".:./lib/*:config:./extends/*:./plugins/*:./customJar/*:./plugins/flink${FLINK_VERSION}/dinky/*:./plugins/flink${FLINK_VERSION}/*:./extends/flink${FLINK_VERSION}/dinky/*:./extends/flink${FLINK_VERSION}/*"

The proposal is to optimize it by using absolute paths based on APP_HOME.

Brief change log

Verify this pull request

This pull request is already covered by existing tests, such as (please describe tests).

manual test
image
image

Copy link
Contributor

@gaoyan1998 gaoyan1998 left a comment

Choose a reason for hiding this comment

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

LGTM

@gaoyan1998 gaoyan1998 added the Optimization Optimization function label Jan 28, 2024
@gaoyan1998 gaoyan1998 added this to the 1.0.0 milestone Jan 28, 2024
@gaoyan1998
Copy link
Contributor

close #3076

@JiaLiangC
Copy link
Contributor Author

close #3076

closed

@Zzm0809 Zzm0809 merged commit cb971f1 into DataLinkDC:dev Jan 28, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Optimization Optimization function
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Optimization][script] Optimizing the classpath in the Dinky startup script
3 participants