0

我正在 DC/OS 上使用 kerberos 部署 hive-metastore-3.0.0 我已经正确生成了主体和 keytab 并验证了相同的内容,但是在metastore-site.xml静态服务器中提供相应设置时显示错误“Kerberos 主体应该有 3 个部分:”它默认拾取我的用户“nobody or root”,我通过它运行服务而不是主体。请求您帮助我是否需要设置任何其他属性?

metastore-site.xml的是:

        <name>hive.metastore.sasl.enabled</name>
        <value>true</value>
        <description>If true, the metastore thrift interface will be secured with SASL. Clients must authenticate with Kerberos.</description>
    </property>
    <property>
        <name>hive.metastore.kerberos.keytab.file</name>
        <value>hive-metastore.keytab</value>
        <description>The path to the Kerberos Keytab file containing the metastore thrift server's service principal.</description>
    </property>
    <property>
        <name>hive.metastore.kerberos.principal</name>
        <value>hive-metastore/node-0-server.hive-metastore.autoip.dcos.thisdcos.directory@LOCAL</value>
        <description>The service principal for the metastore thrift server. The special string _HOST will be replaced automatically with the correct host name.</description>
    </property>
    <property>
        <name>hive.metastore.authentication</name>
        <value>KERBEROS</value>
        <description>authenticationtype</description>     
    </property>```
4

0 回答 0