Issue Details (XML | Word | Printable)

Key: HADOOP-4177
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Allen Wittenauer
Votes: 0
Watchers: 6
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Range of ports instead of all over the map

Created: 15/Sep/08 09:48 PM   Updated: 10/Oct/08 10:19 PM
Return to search
Component/s: fs
Affects Version/s: 0.18.0
Fix Version/s: None

Time Tracking:
Not Specified

Hadoop Flags: Incompatible change


 Description  « Hide
Change the default ports so they are next to each other rather than scattered to make it easier to firewall Hadoop off.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Allen Wittenauer added a comment - 15/Sep/08 09:50 PM
The default ports that Hadoop uses are completely unreasonable. I understand that we can change these ports. Ideally, Hadoop should be promoting good practices out of the box.

Doug Cutting added a comment - 15/Sep/08 10:36 PM
I think the history is that originally Hadoop scanned from an initial port, so each was effectively the beginning of a range. But that scanning has mostly (entirely?) been removed.

Allen Wittenauer added a comment - 15/Sep/08 10:57 PM - edited
The problem is that out of the box Hadoop uses 8020, 50010, 50075, 50020, 50070, .... Is there some reason these ports can't be in order. Say 50010, 50011, 50012, etc? Is there a dartboard somewhere with the 500x0 numbers on it?

Doug Cutting added a comment - 15/Sep/08 11:07 PM
> Is there some reason these ports can't be in order. Say 50010, 50011, 50012, etc?

Not that I know of, except back-compatibility.


Marco Nicosia added a comment - 23/Sep/08 04:00 PM
Although port 8020 may be in the code, it's not explicitly mentioned and/or overridden in hadoop-defaults.xml:
<property>
  <name>fs.default.name</name>
  <value>file:///</value>
</property>

<property>
  <name>dfs.datanode.ipc.address</name>
  <value>0.0.0.0:50020</value>
  <description>
    The datanode ipc server address and port.
    If the port is 0 then the server will start on a free port.
  </description>
</property>

The quickstart doc uses port 9000 for fs.default.name:

<property>
  <name>fs.default.name</name>
  <value>localhost:9000</value>
</property>

We need to make sure that when we consolidate, we make changes in the code, the default configs and the forest docs simultaneously.