You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2013/10/03 21:49:37 UTC

[Hadoop Wiki] Update of "BindException" by SteveLoughran

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "BindException" page has been changed by SteveLoughran:
https://wiki.apache.org/hadoop/BindException?action=diff&rev1=2&rev2=3

Comment:
add mention of ports < 1024 as a possible cause

  
  How to track down the problem
   1. identify which port the program is trying to bind to
-  1. use {{{netstat -a -t --numeric-ports -p}}} to list the ports that are in use by number and process.
+  1. as root use {{{netstat -a -t --numeric-ports -p}}} to list the ports that are in use by number and process. (On OS/X you need to use {{{lsof}}})
   1. identify the port that is in use and the program that is in use
-  1. try and identify why it is in use. Telnet <port> and pointing a web browser at it are both good tricks.
+  1. try and identify why it is in use. {{telnet <port>}} and pointing a web browser at it are both good tricks.
+  1. If the port number is below 1024, the OS may be preventing your program from binding to a "trusted port"
   1. change the configuration of one of the programs to listen on a different port.