hive 之start hiveServer2 ,thriftServer失败

本文详细记录了在启动HiveServer2时遇到的错误,具体表现为无法创建ServerSocket于地址0.0.0.0:10000,导致ThriftBinaryCLIService无法启动。通过检查日志,发现端口10000被其他进程占用。解决方案为使用netstat命令查找占用端口的进程,并使用kill命令结束该进程。

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值