[
https://issues.apache.org/jira/browse/MAPREDUCE-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246622#comment-13246622
]
Nikhil S. Ketkar commented on MAPREDUCE-3315:
---------------------------------------------
I am using org.apache.hadoop.ipc.RPC.getServer(Class protocol, Object instance,
String bindAddress, int port, Configuration conf) to create a RPC server as
follows.
{code}
int linuxEphemeralPortRangeStart = 32768;
int linuxEphemeralPortRangeEnd = 61000;
int port = -1;
for(int i = linuxEphemeralPortRangeStart; i <= linuxEphemeralPortRangeEnd;
i++) {
try {
server = RPC.getServer(MWProtocol.class, this, hostname, i, conf);
port = i;
break;
} catch (BindException e) {
}
}
if (port == -1)
throw new BindException();
else {
server.start();
return port;
{code}
Does RPC.getServer also pick a free port if 0 is specified? I tried to dig
around but found not find any information. What code should I be looking at to
confirm this?
> Master-Worker Application on YARN
> ---------------------------------
>
> Key: MAPREDUCE-3315
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3315
> Project: Hadoop Map/Reduce
> Issue Type: New Feature
> Reporter: Sharad Agarwal
> Assignee: Sharad Agarwal
> Fix For: 0.24.0
>
> Attachments: MAPREDUCE-3315-1.patch, MAPREDUCE-3315-2.patch,
> MAPREDUCE-3315.patch
>
>
> Currently master worker scenarios are forced fit into Map-Reduce. Now with
> YARN, these can be first class and would benefit real/near realtime workloads
> and be more effective in using the cluster resources.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira