Phoenix 沒法啓動報錯: java.net.BindException: Address already in use

1、問題描述

i. 登陸Ambari發現有一個節點的 Phoenix 沒法啓動

ii. 在Ambari上點擊「Start」,監控 Phoenix 日誌文件

iii. Phoenix 日誌以下:

[root@zwlbs3 ~]# tail -f /var/log/hbase/phoenix-hbase-server.logjava

------------------------ 日誌信息以下 -----------------------
2019-07-18 11:20:56,621 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2019-07-18 11:20:56,751 INFO org.apache.calcite.avatica.metrics.MetricsSystemLoader: No metrics implementation available on classpath. Using No-op implementation
2019-07-18 11:20:56,765 INFO org.apache.phoenix.shaded.org.eclipse.jetty.util.log: Logging initialized @1113ms
2019-07-18 11:20:56,975 INFO org.apache.phoenix.shaded.org.eclipse.jetty.server.Server: jetty-9.2.z-SNAPSHOT
2019-07-18 11:20:57,014 WARN org.apache.phoenix.shaded.org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED ServerConnector@2e6a8155{HTTP/1.1}{0.0.0.0:8765}: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
.......apache

2、解決辦法

注:上面的錯誤表示 8765 端口已經被另外一個應用程序使用。app

查詢端口並kill掉

[root@zwlbs3 ~]# netstat -ntlp | grep 8765
tcp6   0   0   :::8765       :::*    LISTEN   1038/java
[root@zwlbs3 ~]# kill -9 1038eclipse

再次啓動 Phoenix,重複1.2步驟便可。tcp

相關文章
相關標籤/搜索