https://doris.apache.org/zh-CN/docs/lakehouse/datalake-analytics/hive/
我参考上面链接的帖子配置的,复制了core-site.xml,hdfs-site.xml 和 hive-site.xml 放到 FE 和 BE 的 conf 目录下
重启了fe、be节点
在客户端创建catlog,查询报错如下
CREATE CATALOG hive_krb PROPERTIES (
'type'='hms',
'hive.metastore.uris' = 'thrift://25.37.67.134:21088,thrift://25.37.67.224:21088', --hive-site.xml里面取的 hive.metastore.uris
'hive.metastore.sasl.enabled' = 'true',
'hive.metastore.kerberos.principal' = 'hive/hadoop.8ddb01ec_61e7_4d46_86f9_f3e2652c7633.com@8DDB01EC_61E7_4D46_86F9_F3E2652C7633.COM', --hive-site.xml里面取的 hive.metastore.kerberos.principal
'hadoop.security.authentication' = 'kerberos',
'hadoop.kerberos.keytab' = '/etc/tt_lslczx.keytab',
'hadoop.kerberos.principal' = 'hdfs/hadoop.8ddb01ec_61e7_4d46_86f9_f3e2652c7633.com@8DDB01EC_61E7_4D46_86F9_F3E2652C7633.COM', --hdfs-site.xml里面取的 dfs.namenode.kerberos.principal
'yarn.resourcemanager.principal' = 'mapred/hadoop.8ddb01ec_61e7_4d46_86f9_f3e2652c7633.com@8DDB01EC_61E7_4D46_86F9_F3E2652C7633.COM' --hdfs-site.xml里面取的 yarn.resourcemanager.principal
);
SHOW DATABASES FROM hive_krb;
执行失败: Error Failed to execute sql: java.sql.SQLException: (conn=14) RuntimeException, msg: javax.security.auth.login.LoginException: Unable to obtain password from user