[
https://issues.apache.org/jira/browse/HIVE-28672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045278#comment-18045278
]
Fatih edited comment on HIVE-28672 at 12/15/25 8:36 PM:
--------------------------------------------------------
If your principal already have 3 parts, you should also add core-site.xml to
hive config path. The file content like following:
```
<configuration>
<property>
<name>hadoop.security.authentication</name>
<value>kerberos</value>
</property>
</configuration>
```
Source: https://blog.devgenius.io/apache-spark-wtf-welcome-to-hell-83aa677156e5
was (Author: JIRAUSER308319):
If your principal already have 3 parts, you should also add core-site.xml to
hive config path. The file content like following:
```
<configuration>
<property>
<name>hadoop.security.authentication</name>
<value>kerberos</value>
</property>
</configuration>
```
> metastorethrow error: Kerberos principal should have 3 parts: hive
> --------------------------------------------------------------------
>
> Key: HIVE-28672
> URL: https://issues.apache.org/jira/browse/HIVE-28672
> Project: Hive
> Issue Type: Bug
> Affects Versions: 4.0.1
> Reporter: manoj kumar
> Priority: Major
>
> ERROR [main] metastore.HiveMetaStore: Metastore Thrift Server threw an
> exception...
> org.apache.thrift.transport.TTransportException: Kerberos principal should
> have 3 parts: hive
> at
> org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server.createSaslServerTransportFactory(HadoopThriftAuthBridge.java:364)
> ~[hive-exec-2.3.4.jar:2.3.4]
> at
> org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server.createTransportFactory(HadoopThriftAuthBridge.java:347)
> ~[hive-exec-2.3.4.jar:2.3.4]
> at
> org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:7154)
> ~[hive-exec-2.3.4.jar:2.3.4]
> at
> org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:7065)
> [hive-exec-2.3.4.jar:2.3.4]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_371]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_371]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_371]
> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_371]
> at org.apache.hadoop.util.RunJar.run(RunJar.java:328)
> [hadoop-common-3.3.6.jar:?]
> at org.apache.hadoop.util.RunJar.main(RunJar.java:241)
> [hadoop-common-3.3.6.jar:?]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)