Got it

[Change Faults] HiveServer Startup Failure Due to Hive Metadata Upgrade Timeout

96 0 0 0 0

hello, everyone!

this post i want to introduce you a change faults of HiveServer startup failure due to Hive Metadata upgrade timeout. let's see it together.


[Applicable Version]

C70SPC2xx-6.5.1.6

C70SPC2xx to 6.5.1.7 (This case uses the upgrade from C70SPC200 to 6.5.1.6 as an example.)

[Context and Symptom]

After C70SPC2 is upgraded to 6.5.1.6 or 6.5.1.7, the HiveServer fails to be started and the message "Could not connect to meta store using any of the URIs porvided." is displayed.

1_en-us_image_0289348023.png

The message "Hive Schema version 3.1.0 does not match metastore's schema version 1.3.0 Metastore is not upgraded ot corrupt" is displayed in the MetaStore log.

1_en-us_image_0289348025.png

[Cause Analysis]

During the upgrade, the pre-upgrade check is not performed according to the upgrade guide. As a result, the timeout interval of the Hive upgrade metadata operation is not checked.

Modify the socketTimeout value of javax.jdo.option.ConnectionURL in the ${BIGDATA_HOME}/FusionInsight_HD_6.5.1/*_*_MetaStore/etc/hivemetastore-site.xml file to 1800 seconds.

Modify the socketTimeout value of javax.jdo.option.ConnectionURL in the ${BIGDATA_HOME}/FusionInsight_HD_6.5.1.7/*_*_MetaStore/etc/hivemetastore-site.xml file to 1800 seconds.

[Solution]

Use PuTTY to log in to the MetaStore node as user root.

  1. Run the following command to disable logout on timeout:

    TMOUT=0

  2. Run the following command to perform a query:

    find /opt/huawei/Bigdata -name upgrade-1.3.0-to-3.1.0.postgres.sql

    The content of the following two SQL files is the same. The file contains 577 lines. The SQL statement containing 796 lines is for the rolling upgrade.

    1_en-us_image_0292521544.png

  3. Log in to the hivemeta database of DBService as user omm and run the following script (you are advised to manually copy the SQL script and run it by line):

    1_en-us_image_0292521543.png

  4. Restart the HiveServer.


Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.