You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For users who are new to Gravitino, many attempt to launch Gravitino services using the script located at /gravitino/bin, such as /gravitino/bin/gravitino.sh, which is only a script template.
The correct way is to run ./gradlew clean build -x test compileDistribution, which will compile and generate all artifacts into the directory /gravitino/distribution/package, including /gravitino/distribution/package/bin/gravitino.sh.
Then you can use /gravitino/distribution/package/bin/gravitino.sh to launch the services.
How should we improve?
To avoid the above misuse, we have a few suggestions to prevent mistakes:
Add a .template extension to the scripts bin/gravitino.sh, gravitino-iceberg-rest-server.sh, and common.sh to ensure they cannot be run by accident.
Add a check for the GRAVITINO_VERSION environment variable in the gravitino.sh.template and gravitino-iceberg-rest-server.sh.template scripts. If GRAVITINO_VERSION is not assigned, print an error message and exit the script.
Ensure that only the scripts in the distribution/package/bin/ directory have the GRAVITINO_VERSION environment variable set.
The text was updated successfully, but these errors were encountered:
What would you like to be improved?
For users who are new to Gravitino, many attempt to launch Gravitino services using the script located at /gravitino/bin, such as /gravitino/bin/gravitino.sh, which is only a script template.
The correct way is to run ./gradlew clean build -x test compileDistribution, which will compile and generate all artifacts into the directory /gravitino/distribution/package, including /gravitino/distribution/package/bin/gravitino.sh.
Then you can use /gravitino/distribution/package/bin/gravitino.sh to launch the services.
How should we improve?
To avoid the above misuse, we have a few suggestions to prevent mistakes:
.template
extension to the scriptsbin/gravitino.sh
,gravitino-iceberg-rest-server.sh
, andcommon.sh
to ensure they cannot be run by accident.GRAVITINO_VERSION
environment variable in thegravitino.sh.template
andgravitino-iceberg-rest-server.sh.template
scripts. IfGRAVITINO_VERSION
is not assigned, print an error message and exit the script.distribution/package/bin/
directory have theGRAVITINO_VERSION
environment variable set.The text was updated successfully, but these errors were encountered: