MAPREDUCE-6338. MR AppMaster does not honor ephemeral port range. Contributed by Frank Nguyen.
(cherry picked from commit d401e63b6c
)
This commit is contained in:
parent
be9b02e0b6
commit
378d62663f
|
@ -122,14 +122,13 @@ public class TaskAttemptListenerImpl extends CompositeService
|
||||||
protected void startRpcServer() {
|
protected void startRpcServer() {
|
||||||
Configuration conf = getConfig();
|
Configuration conf = getConfig();
|
||||||
try {
|
try {
|
||||||
server =
|
server = new RPC.Builder(conf).setProtocol(TaskUmbilicalProtocol.class)
|
||||||
new RPC.Builder(conf).setProtocol(TaskUmbilicalProtocol.class)
|
|
||||||
.setInstance(this).setBindAddress("0.0.0.0")
|
.setInstance(this).setBindAddress("0.0.0.0")
|
||||||
.setPort(0).setNumHandlers(
|
.setPortRangeConfig(MRJobConfig.MR_AM_JOB_CLIENT_PORT_RANGE)
|
||||||
|
.setNumHandlers(
|
||||||
conf.getInt(MRJobConfig.MR_AM_TASK_LISTENER_THREAD_COUNT,
|
conf.getInt(MRJobConfig.MR_AM_TASK_LISTENER_THREAD_COUNT,
|
||||||
MRJobConfig.DEFAULT_MR_AM_TASK_LISTENER_THREAD_COUNT))
|
MRJobConfig.DEFAULT_MR_AM_TASK_LISTENER_THREAD_COUNT))
|
||||||
.setVerbose(false).setSecretManager(jobTokenSecretManager)
|
.setVerbose(false).setSecretManager(jobTokenSecretManager).build();
|
||||||
.build();
|
|
||||||
|
|
||||||
// Enable service authorization?
|
// Enable service authorization?
|
||||||
if (conf.getBoolean(
|
if (conf.getBoolean(
|
||||||
|
|
Loading…
Reference in New Issue