-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-6286] [script] Fix the hbase command not found error #3711
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
Conversation
Hi @lingjinjiang, I am not familiar with configuring HBase for Flink and we don't seem to have documentation on this. What does it mean to have |
Hi @greghogan , In the config.sh, there is a if statement identifies whether HBASE_CONF_DIR is setted. |
Would it be better to replace the outer if-statement (line 312) with the test for the presence of |
@greghogan , I add some comments and log the message about hbase command not found. |
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.
I'm not sure this is the best way to integrate the HBase classpath but +1 to fixing the error with a detailed log message.
# The hbase command is found, then setup the HBase classpath. | ||
INTERNAL_HADOOP_CLASSPATHS="${INTERNAL_HADOOP_CLASSPATHS}:`${HBASE_IN_PATH} classpath`" | ||
else | ||
echo "The HBASE_IN_PATH is setted but can't setup HBase classpath. Please verify hbase command exists." |
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.
Perhaps more like "HBASE_CONF_DIR="${HBASE_CONF_DIR}" is set but 'hbase' command was not found in "${HBASE_PATH}" so classpath could not be updated."? I assumed HBASE_PATH="${HBASE_HOME}/bin:$PATH" as a local variable.
@greghogan, thanks for your suggestion. I have changed the log message. |
@lingjinjiang thanks for your contribution! Merging ... |
@greghogan thanks for your review. I have another question, how can I assign the issue to myself ? |
@fhueske can grant you Jira permissions. |
@lingjinjiang You are now the proud owner of contributor permissions and can assign issues to yourself. |
@greghogan @zentol thanks. Can this pull request be merged or closed now ? |
When using flink with the HBASE_CONF_DIR env variable and don't install hbase, then will get the "hbase command not found" error.
https://issues.apache.org/jira/browse/FLINK-6286