hive 之start hiveServer2 ,thriftServer失败

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wangshuminjava/article/details/82462675

hive 之start hiveServer2 ,thriftServer失败

报错信息如下:

ERROR org.apache.hive.service.cli.thrift.ThriftCLIService: [Thread-11]: Error starting HiveServer2: could not start ThriftBinaryCLIService

org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:10000.

        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:87)

        at org.apache.hive.service.auth.HiveAuthFactory.getServerSocket(HiveAuthFactory.java:271)

        at org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:66)

        at java.lang.Thread.run(Thread.java:745)

解决办法:

查看日志发现:Hive.server2.thrift.port 10000端口被占用

[wangshumin@centoshostnameKL2 conf]$ netstat  -ltpn | grep 10000
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:10000               0.0.0.0:*                   LISTEN      21725/java          
[wangshumin@centoshostnameKL2 conf]$ kill -9 21725

猜你喜欢

转载自blog.csdn.net/wangshuminjava/article/details/82462675