-
Notifications
You must be signed in to change notification settings - Fork 383
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
[#5976] Improvement(bin):Add validation checks to the startup scripts to prevent incorrect usage #5977
base: main
Are you sure you want to change the base?
[#5976] Improvement(bin):Add validation checks to the startup scripts to prevent incorrect usage #5977
Changes from 2 commits
a5dec5f
6b38ae9
fe87ce5
73c7c10
dbea2d5
07f02c6
044f464
9499434
4cfcd6d
3d6c62f
cb8d850
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,13 @@ | |
# Referred from Apache Submarine's common.sh implementation | ||
# bin/common.sh | ||
|
||
GRAVITINO_VERSION=GRAVITINO_VERSION_PLACEHOLDER | ||
if [[ "$GRAVITINO_VERSION" == *_VERSION_PLACEHOLDER ]]; then | ||
echo "GRAVITINO_VERSION is not set. Please make sure you are running the script from the distribution/package/bin and before running the script, run './gradle clean build -x test compileDistribution'" | ||
exit 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update the prompt message:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the feedback. I will make the updates as required:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Run the gravitino.sh script in the release package." this may not be the best instructions, as an ASF release package is source, not binary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does 'release package' mean? Should it instead be referred to as a 'distribution package'? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @justinmclean The problem is that there are some users who run gravitino.sh scripts without compiling, causing them to fail. We want to give them some tips. Do you have any better suggestions? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ask them to use a binary distribution or compile it first? i.e:
|
||
fi | ||
|
||
|
||
if [ -L "${BASH_SOURCE-$0}" ]; then | ||
FWDIR=$(dirname "$(readlink "${BASH_SOURCE-$0}")") | ||
else | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @liuchunhao I think maybe we can modify this file suffix to
.sh.template
, keep it consistent.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xunliu , thank you for the feedback. I have updated it as suggested.