vinoyang created KYLIN-3756:
-------------------------------
Summary: Support check-port-availability script for mac os x
Key: KYLIN-3756
URL: https://issues.apache.org/jira/browse/KYLIN-3756
Project: Kylin
Issue Type: Improvement
Components: Tools, Build and Test
Reporter: vinoyang
{{bin/check-port-availability.sh}} internally uses "netstat -tlpn" to detect
network ports. Running this script under mac os x will report the following
exception:
{code:java}
netstat: n: unknown or uninstrumented protocol{code}
The "netstat" command under mac os x does not support the "n,p" option. We can
achieve the same function under mac with the "lsof" command. More details:
https://stackoverflow.com/questions/4421633/who-is-listening-on-a-given-tcp-port-on-mac-os-x
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)