liuchunhao opened a new issue, #5976:
URL: https://github.com/apache/gravitino/issues/5976

   ### 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:
   
   1. 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.
   2. 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.
   3. Ensure that only the scripts in the `distribution/package/bin/` directory 
have the `GRAVITINO_VERSION` environment variable set.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to