【发布时间】:2013-01-01 16:41:50
【问题描述】:
((1))
我在启动 Thrift 服务器时遇到以下错误:
hive --service hiveserver
Starting Hive Thrift Server
org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:10000.
当我运行 netstat 时,端口 10000 已经在使用中..
$ netstat -nl | grep 10000
tcp6 0 0 :::10000 :::* LISTEN
我该如何解决这个问题?
((2))
在启动 Hive Web 界面时出现以下错误
hive --service hwi
$ hive --service hwi
13/01/01 22:05:36 INFO hwi.HWIServer: HWI is starting up
13/01/01 22:05:37 INFO mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
13/01/01 22:05:37 INFO mortbay.log: jetty-6.1.26
13/01/01 22:05:37 INFO mortbay.log: Extract /opt/hive/lib/hive-hwi-0.9.0.jar to /tmp/Jetty_127_0_0_1_3606_hive.hwi.0.9.0.jar__hwi__.6ogsv5/webapp
13/01/01 22:05:37 WARN mortbay.log: failed SocketConnector@127.0.0.1:3606: java.net.BindException: Address already in use
13/01/01 22:05:37 WARN mortbay.log: failed Jetty20SShims$Server@21e554: java.net.BindException: Address already in use
Exception in thread "main" java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
请帮忙。
提前致谢!!
【问题讨论】:
-
尝试
netstat -nl | grep 9999检查哪个进程使用9999是默认hwi端口的端口。 -
更改默认地址并再次尝试运行。