为了更快的定位您的问题,请提供以下信息,谢谢
【详述】创建hive catalog 成功,但是show database 报kerberos认证失败
【背景】做过哪些操作?
【业务影响】
【是否存算分离】
【StarRocks版本】3.3.0
【java版本】jdk-11.0.21
【集群规模】1fe(1 follower+2observer)+5be
【机器信息】CPU虚拟核/内存/网卡,48C/64G/万兆
【联系方式】648380139@qq.com
【附件】
-
fe.conf
JAVA_OPTS="-Dsun.security.krb5.debug=true -Djava.security.krb5.conf=/opt/StarRocks/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -Dlog4j2.formatMsgNoLookups=true -Xmx125536m " -
be.conf
JAVA_OPTS="-Xmx1024m -Djava.security.krb5.conf=/opt/StarRocks/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false" -
catalog语句:
CREATE EXTERNAL CATALOGbigdata_hive_test
PROPERTIES (
“type” = “hive”,
“hive.metastore.type” = “hive”,
“hive.metastore.uris” = “thrift://hivenode1:9083”,
“hadoop.security.authentication” = “kerberos”,
“hadoop.kerberos.keytab” = “/opt/StarRocks/be/conf/hive.keytab”,
); -
fe.log
2024-08-16 17:25:48.281+08:00 INFO (starrocks-mysql-nio-pool-3|1242) [HiveMetaStoreClient.openInternal():461] Trying to connect to metastore with URI thrift://hivenode1:9083
2024-08-16 17:25:48.282+08:00 INFO (starrocks-mysql-nio-pool-3|1242) [HiveMetaStoreClient.openInternal():513] HMSC::open(): Could not find delegation token. Creating KERBEROS-based thrift connection.
2024-08-16 17:25:48.285+08:00 ERROR (starrocks-mysql-nio-pool-3|1242) [TSaslTransport.open():271] SASL negotiation failure
javax.security.sasl.SaslException: GSS initiate failed
at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:222) ~[jdk.security.jgss:?]
at org.apache.thrift.transport.TSaslClientTransport.handleSaslStartMessage(TSaslClientTransport.java:94) ~[libthrift-0.20.0.jar:0.20.0]
at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:231) ~[libthrift-0.20.0.jar:0.20.0]
at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37) ~[libthrift-0.20.0.jar:0.20.0]
at org.apache.hadoop.hive.metastore.security.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:51) ~[hive-apache-3.1.2-22.jar:?]
at org.apache.hadoop.hive.metastore.security.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:48) ~[hive-apache-3.1.2-22.jar:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at javax.security.auth.Subject.doAs(Subject.java:423) ~[?:?]
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1953) ~[hadoop-common-3.4.0.jar:?]
at org.apache.hadoop.hive.metastore.security.TUGIAssumingTransport.open(TUGIAssumingTransport.java:48) ~[hive-apache-3.1.2-22.jar:?]
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.openInternal(HiveMetaStoreClient.java:540) ~[starrocks-fe.jar:?]
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.lambda$open$1(HiveMetaStoreClient.java:444) ~[starrocks-fe.jar:?] -
客户端log
MySQL [(none)]> show databases;
ERROR 1064 (HY000): Failed to getAllDatabases, msg: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
- 备注
端口和网络都正常