Help Center> MapReduce Service> Developer Guide (Normal_3.x)> Hive Development Guide (Security Mode)> More Information> FAQ> A Message Is Displayed Stating "Unable to read HiveServer2 configs from ZooKeeper" During the Use of the Secondary Development Program
Updated on 2022-08-16 GMT+08:00

A Message Is Displayed Stating "Unable to read HiveServer2 configs from ZooKeeper" During the Use of the Secondary Development Program

Question

A Message Is Displayed Stating "Unable to read HiveServer2 configs from ZooKeeper" During the Use of the Secondary Development Program.

Answer

  • Possible Causes
    • The used krb5.conf and user.keytab may not be the latest ones, or the user names in the files do not match with those in example codes.
    • The difference between the time of the client and that of the connected cluster is greater than 5 minutes.
  • Possible Causes
    • Check the code and download the latest credential file for user authentication.
    • Check whether the difference between the time of the client and that of the connected cluster is greater than 5 minutes. If yes, adjust the time of the client.