liuchunhao commented on code in PR #5977: URL: https://github.com/apache/gravitino/pull/5977#discussion_r1911879329
########## bin/common.sh: ########## @@ -42,6 +42,15 @@ if [[ -f "${GRAVITINO_CONF_DIR}/gravitino-env.sh" ]]; then . "${GRAVITINO_CONF_DIR}/gravitino-env.sh" fi +if [[ -z "${GRAVITINO_VERSION}" ]]; then + echo -e "No variable GRAVITINO_VERSION was found, you may need to:\n" \ + "1. Ensure that a compiled version of Gravitino is available at" \ + "<path-to-gravitino>/distribution/package. If not, you must compile it first.\n" \ + "2. Execute gravitino.sh from <path-to-gravitino>/distribution/package/bin" \ + "and avoid running scripts from other directories." Review Comment: This is because many developers try to run Gravitino using ${GRAVITINO}/bin/gravitino.sh. The error message is intended to guide them to use the correct script: ${GRAVITINO}/distribution/package/bin/gravitino.sh. -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org