我想跑 Hive metastore
.
但它在下面抛出错误。
org.apache.thrift.transport.tttransportException:在org.apache.hadoop.hive.thrift.hadoopthriftauthbridge20s$server没有指定keytab。java:337)在org.apache.hadoop.hive.thrift.hadoopthriftauthbridge20s.createserver(hadoopthriftauthbridge20s。java:104)在org.apache.hadoop.hive.thrift.hadoopthriftauthbridge20s.createserver(hadoopthriftauthbridge20s。java:74)在org.apache.hadoop.hive.metastore.hivemetastore.startmetastore(hivemetastore)。java:5771)位于org.apache.hadoop.hive.metastore.hivemetastore.main(hivemetastore。java:5701)位于sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl。java:57)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)在java.lang.reflect.method.invoke(方法。java:606)在org.apache.hadoop.util.runjar.main(runjar。java:212)线程“main”org.apache.thrift.transport.ttTransportException中出现异常:在org.apache.hadoop.hive.thrift.hadoopthriftauthbridge20s$server上没有指定keytab。java:337)在org.apache.hadoop.hive.thrift.hadoopthriftauthbridge20s.createserver(hadoopthriftauthbridge20s。java:104)在org.apache.hadoop.hive.thrift.hadoopthriftauthbridge20s.createserver(hadoopthriftauthbridge20s。java:74)在org.apache.hadoop.hive.metastore.hivemetastore.startmetastore(hivemetastore)。java:5771)位于org.apache.hadoop.hive.metastore.hivemetastore.main(hivemetastore。java:5701)在sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)在sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl)。java:57)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)在java.lang.reflect.method.invoke(方法。java:606)在org.apache.hadoop.util.runjar.main(runjar。java:212)
1条答案
按热度按时间fcy6dtqo1#
如果启用了安全性,请使用keytab文件和kerberos的主体更新hive-site.xml中的以下属性。
hive.metastore.kerberos.keytab.file
hive.metastore.kerberos.principal
或者必须通过将属性设置为false来禁用metastore的安全性hive.metastore.sasl.enabled