在 Hive 中启用 Kerberos 后出现 TThreadPoolServer 或 TTransportException 错误
TThreadPoolServer or TTransportException Errors after enabling Kerberos in Hive
启用 Kerberos 身份验证后,metastore 或 hiveserver 中出现以下错误。
ERROR server.TThreadPoolServer: Error occurred during processing of message
Error applying authorization policy on hive configuration HiveException: TTransportException
HiveServer2 启动但将无法反复连接到 metastore
,即使它是 运行。
每次连接尝试都会遇到上述错误。
如果在 hive.server2.authentication
设置为 KERBEROS
时未正确启用 SASL,则会出现此错误
解决方案
在 hive-site.xml
中将 hive.metastore.sasl.enabled
设置为 true
还要确保 hive.server2.thrift.sasl.qop
设置为可能的 3 个选项之一。例如。 auth
启用 Kerberos 身份验证后,metastore 或 hiveserver 中出现以下错误。
ERROR server.TThreadPoolServer: Error occurred during processing of message
Error applying authorization policy on hive configuration HiveException: TTransportException
HiveServer2 启动但将无法反复连接到 metastore
,即使它是 运行。
每次连接尝试都会遇到上述错误。
如果在 hive.server2.authentication
设置为 KERBEROS
解决方案
在 hive-site.xml
hive.metastore.sasl.enabled
设置为 true
还要确保 hive.server2.thrift.sasl.qop
设置为可能的 3 个选项之一。例如。 auth