protected void initNettyMapOutputHttpServer(JobConf conf) throws IOException {
int nettyHttpPort = conf.getInt(NETTY_MAPOUTPUT_HTTP_PORT, 0);
NettyMapOutputAttributes attributes = new NettyMapOutputAttributes(
conf, this, FileSystem.getLocal(conf),
new LocalDirAllocator("mapred.local.dir"), shuffleServerMetrics);
nettyMapOutputServer = new NettyMapOutputHttpServer(nettyHttpPort);
nettyMapOutputServer.init(conf);
shuffleServerMetrics.setNettyWorkerThreadPool(
nettyMapOutputServer.getWorkerThreadPool());
HttpMapOutputPipelineFactory pipelineFactory =
new HttpMapOutputPipelineFactory(attributes, nettyHttpPort);