我是靠谱客的博主 美好毛衣,最近开发中收集的这篇文章主要介绍Hive之metastore服务启动错误解决方案org.apache.thrift.transport.TTransportException: Could not create ServerSock,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
Hive之metastore服务启动错误解决方案——org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.
1、错误
org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.
2、执行查看linux端口命令,发现9083 端口被占用
[root@hadoop3 ~]# netstat -apn|grep 9083
tcp 0 0 0.0.0.0:9083 0.0.0.0:* LISTEN 2631/java
3、原因
metastore重复启动,kill进程后重新启动即可解决问题
先jps查看进程
[root@hadoop3 ~]# jps
[root@hadoop3 ~]# kill -9 2817
[4]+ Killed hive --service metastore
[root@hadoop3 ~]# Starting Hive Metastore Server
20/04/11 12:51:18 WARN conf.HiveConf: HiveConf of name hive.metastore.local does not exist
org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.
at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:109)
at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:91)
at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:83)
at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:5974)
at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:5915)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
^C
[root@hadoop3 ~]# netstat -apn|grep 9083
tcp 0 0 0.0.0.0:9083 0.0.0.0:* LISTEN 2631/java
[root@hadoop3 ~]# kill -9 2817
[4]+ Killed hive --service metastore
[root@hadoop3 ~]# kill -9 2475
[3]+ Killed hive --service metastore
最后
以上就是美好毛衣为你收集整理的Hive之metastore服务启动错误解决方案org.apache.thrift.transport.TTransportException: Could not create ServerSock的全部内容,希望文章能够帮你解决Hive之metastore服务启动错误解决方案org.apache.thrift.transport.TTransportException: Could not create ServerSock所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复