Failed to Start Hive
The most common cause of the Hive startup failure is that the MetaStore instance cannot connect to DBService. The error information is printed in the MetaStore log.
Possible Causes
- DBService does not properly initialize the Hive metabase hivemeta.
- The floating IP address of DBService is incorrect. As a result, the IP address of the MetaStore node fails to connect to or build mutual trust with the floating IP address, causing the MetaStore startup failure.
Procedure 1
- Run the following commands:
source /opt/Bigdata/MRS_XXX/install/dbservice/.dbservice_profile
gsql -h DBService floating IP address -p 20051 -d hivemeta -U hive -W Hive user password
- If the interaction interface cannot be properly displayed, database initialization fails. If the following error information is displayed, the hivemeta configuration may be lost in the configuration file of the node where DBService is located.
org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "192.168.0.146", database "HIVEMETA"
- Edit /srv/BigData/dbdata_service/data/pg_hba.conf by adding host hivemeta hive 0.0.0.0/0 sha256 to the file.
- Run the source /opt/Bigdata/MRS_XXX/install/dbservice/.dbservice_profile command to configure environment variables.
- Run gs_ctl -D $GAUSSDATA reload # to make new configurations take effect.
Procedure 2
The floating IP address of DBService must be an IP address that is not used in the same network segment and cannot be pinged before configuration. Change the floating IP address of DBService.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot