获取Griffin连接的Hive错误。 Hive已通过kerberos认证。我的蜂巢是1.1.0
Hive的配置:
# Hive metastore
hive.metastore.uris=thrift://****:9083
格里芬开始时:
2019-08-29 14:17:23.562 INFO 15125 --- [主] o.q.i.StdSchedulerFactory:石英调度程序 从外部提供的'schedulerFactoryBean'初始化 财产实例2019-08-29 14:17:23.562 INFO 15125 --- [
main] o.q.i.StdSchedulerFactory:Quartz调度程序 版本:2.2.2 2019-08-29 14:17:23.563信息15125 --- [
main] o.q.c.QuartzScheduler:JobFactory设置为: org.apache.griffin.core.job.factory.AutowiringSpringBeanJobFactory@4758820d 2019-08-29 14:17:24.078 INFO 15125 --- [主要] o.a.h.h.c.HiveConf:找到配置文件 jar:文件:/opt/service-0.4.0.jar!/ BOOT-INF / classes!/hive-site.xm l 2019-08-29 14:17:24.793信息15125 --- [main] h.metastore :尝试使用URI Thrift:// ****:9083连接到Metastore 2019-08-29 14:17:24.834信息15125 --- [main] h.metastore :打开与元存储的连接,当前连接为:1 2019-08-29 14:17:25.057 WARN 15125 --- [main] o.a.h.u.NativeCodeLoader:无法加载 适用于您平台的native-hadoop库...使用内建的Java类 适用的地方2019-08-29 14:17:25.166警告15125 --- [
主要] h.metastore:set_ugi()不 成功,可能的原因:新客户端与旧服务器通信。持续的 没有它。org.apache.thrift.transport.TTransportException:空 在org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.thrift.protocol.TBinaryProtocol.readStringBody(TBinaryProtocol.java:380) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:230) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:77) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore $ Client.recv_set_ugi(ThriftHiveMetastore.java:4122) 〜[hive-metastore-2.2.0.jar!/:2.2.0] 在org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore $ Client.set_ugi(ThriftHiveMetastore.java:4108) 〜[hive-metastore-2.2.0.jar!/:2.2.0] 在org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:495) [hive-metastore-2.2.0.jar!/:2.2.0] 在org.apache.hadoop.hive.metastore.HiveMetaStoreClient(HiveMetaStoreClient.java:286) [hive-metastore-2.2.0.jar!/:2.2.0] 在org.apache.hadoop.hive.metastore.HiveMetaStoreClient。(HiveMetaStoreClient.java:211) [hive-metastore-2.2.0.jar!/:2.2.0] 在org.apache.griffin.core.metastore.hive.HiveMetaStoreProxy.initHiveMetastoreClient(HiveMetaStoreProxy.java:68) [课程!/:0.4.0] 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)〜[?:1.8.0_162]
格里芬创建度量时:
2019-08-30 09:39:27.768错误15125 --- [nio-8080-exec-4] h.log
:有异常:org.apache.thrift.transport.TTransportException java.net.SocketException:管道损坏(写入失败)org.apache.thrift.transport.TTransportException: java.net.SocketException:管道损坏(写入失败) 在org.apache.thrift.transport.TIOStreamTransport.flush(TIOStreamTransport.java:161) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:73) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:62) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore $ Client.send_get_all_datas(ThriftHiveMetastore.java:845) 〜[hive-metastore-2.2.0.jar!/:2.2.0] 在org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore $ Client.get_all_databases(ThriftHiveMetastore.java:838) 〜[hive-metastore-2.2.0.jar!/:2.2.0] 在org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getAllDatabases(HiveMetaStoreClient.java:1154) [hive-metastore-2.2.0.jar!/:2.2.0]
2019-08-30 09:39:27.770错误15125 --- [nio-8080-exec-4] h.log
:将异常转换为MetaException 2019-08-30 09:39:27.771 WARN 15125-[nio-8080-exec-4] o.a.t.t. TIOStreamTransport: 关闭输出流时出错。java.net.SocketException:套接字已关闭 在java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118) 〜[?:1.8.0_162] 在java.net.SocketOutputStream.write(SocketOutputStream.java:155) 〜[?:1.8.0_162] 在java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) 〜[?:1.8.0_162]
2019-08-30 09:39:27.772信息15125 --- [nio-8080-exec-4] h.metastore :已关闭与元存储的连接,当前连接:0 2019-08-30 09:39:27.774 INFO 15125 --- [nio-8080-exec-4] h.metastore
:尝试使用URI Thrift:// ****:9083连接到Metastore 2019-08-30 09:39:27.775信息15125 --- [nio-8080-exec-4] h.metastore :打开了与元存储的连接,当前连接为:1 2019-08-30 09:39:27.815 WARN 15125 --- [nio-8080-exec-4] h.metastore
:set_ugi()不成功,可能的原因:新客户端与旧客户端通信 服务器。没有它继续。org.apache.thrift.transport.TTransportException:空 在org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) 〜[libthrift-0.9.3.jar!/:0.9.3] 在org.apache.thrift.protocol.TBinaryProtocol.readStringBody(TBinaryProtocol.java:380) 〜[libthrift-0.9.3.jar!/:0.9.3]
2019-08-30 09:39:27.820信息15125 --- [nio-8080-exec-4] h.metastore :已连接到Metastore。 2019-08-30 09:39:27.820错误15125- [nio-8080-exec-4] o.a.g.c.m.h.HiveMetaStoreService:无法 获取数据库:{} org.apache.hadoop.hive.metastore.api.MetaException: 有异常:org.apache.thrift.transport.TTransportException java.net.SocketException:管道损坏(写入失败)
2019年8月30日上午9:39:27 org.apache.catalina.core.StandardWrapperValve 调用SeverE:Servlet [dispatcherServlet]中的Servlet.service() 路径[]的上下文引发异常[请求处理失败; 嵌套异常是java.lang.NullPointerException],其根本原因是 java.lang.NullPointerException