public class ShuffleHandler
extends org.apache.hadoop.yarn.service.AbstractService
implements org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.AuxiliaryService
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_SHUFFLE_CONNECTIONS |
static boolean |
DEFAULT_SHUFFLE_MANAGE_OS_CACHE |
static int |
DEFAULT_SHUFFLE_PORT |
static int |
DEFAULT_SHUFFLE_READAHEAD_BYTES |
static int |
DEFAULT_SUFFLE_SSL_FILE_BUFFER_SIZE |
static String |
MAPREDUCE_SHUFFLE_SERVICEID |
static String |
MAX_SHUFFLE_CONNECTIONS |
protected org.apache.hadoop.mapred.ShuffleHandler.HttpPipelineFactory |
pipelineFact |
static String |
SHUFFLE_MANAGE_OS_CACHE |
static String |
SHUFFLE_PORT_CONFIG_KEY |
static String |
SHUFFLE_READAHEAD_BYTES |
static String |
SUFFLE_SSL_FILE_BUFFER_SIZE_KEY |
| Constructor and Description |
|---|
ShuffleHandler() |
| Modifier and Type | Method and Description |
|---|---|
static int |
deserializeMetaData(ByteBuffer meta)
A helper function to deserialize the metadata returned by ShuffleHandler.
|
ByteBuffer |
getMeta() |
protected org.apache.hadoop.mapred.ShuffleHandler.Shuffle |
getShuffle(org.apache.hadoop.conf.Configuration conf) |
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
initApp(String user,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
ByteBuffer secret) |
static ByteBuffer |
serializeMetaData(int port)
Serialize the shuffle port into a ByteBuffer for use later on.
|
static ByteBuffer |
serializeServiceData(org.apache.hadoop.security.token.Token<org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier> jobToken)
A helper function to serialize the JobTokenIdentifier to be sent to the
ShuffleHandler as ServiceData.
|
void |
start() |
void |
stop() |
void |
stopApp(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
getConfig, getName, getServiceState, getStartTime, register, unregisterpublic static final String SHUFFLE_MANAGE_OS_CACHE
public static final boolean DEFAULT_SHUFFLE_MANAGE_OS_CACHE
public static final String SHUFFLE_READAHEAD_BYTES
public static final int DEFAULT_SHUFFLE_READAHEAD_BYTES
protected org.apache.hadoop.mapred.ShuffleHandler.HttpPipelineFactory pipelineFact
public static final String MAPREDUCE_SHUFFLE_SERVICEID
public static final String SHUFFLE_PORT_CONFIG_KEY
public static final int DEFAULT_SHUFFLE_PORT
public static final String SUFFLE_SSL_FILE_BUFFER_SIZE_KEY
public static final int DEFAULT_SUFFLE_SSL_FILE_BUFFER_SIZE
public static final String MAX_SHUFFLE_CONNECTIONS
public static final int DEFAULT_MAX_SHUFFLE_CONNECTIONS
public static ByteBuffer serializeMetaData(int port) throws IOException
port - the port to be sent to the ApplciationMasterIOExceptionpublic static int deserializeMetaData(ByteBuffer meta) throws IOException
meta - the metadata returned by the ShuffleHandlerIOExceptionpublic static ByteBuffer serializeServiceData(org.apache.hadoop.security.token.Token<org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier> jobToken) throws IOException
jobToken - the job token to be used for authentication of
shuffle data requests.IOExceptionpublic void initApp(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, ByteBuffer secret)
initApp in interface org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.AuxiliaryServicepublic void stopApp(org.apache.hadoop.yarn.api.records.ApplicationId appId)
stopApp in interface org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.AuxiliaryServicepublic void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.AbstractServicepublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.AbstractServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.AbstractServicepublic ByteBuffer getMeta()
getMeta in interface org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.AuxiliaryServiceprotected org.apache.hadoop.mapred.ShuffleHandler.Shuffle getShuffle(org.apache.hadoop.conf.Configuration conf)
Copyright © 2013 Apache Software Foundation. All Rights Reserved.