我正在尝试运行Hive metastore
。
但它在下面抛出错误。
org.apache.thrift.transport.TTransportException:未指定keytab ** 在org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S $ Server。(HadoopThriftAuthBridge20S.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) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.main(RunJar.java:212)线程“main”中的异常 org.apache.thrift.transport.TTransportException:未指定keytab 在org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S $ Server。(HadoopThriftAuthBridge20S.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) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 在org.apache.hadoop.util.RunJar.main(RunJar.java:212)
答案 0 :(得分:0)
如果您启用了安全性,请使用keytab文件和kerberos的主体更新hive-site.xml中的以下属性。
hive.metastore.kerberos.keytab.file
hive.metastore.kerberos.principal
或者您必须通过将 false 设置为属性hive.metastore.sasl.enabled