public class MasterLoggingAggregator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MASTER_LOGGING_AGGREGATOR_NAME
Name of aggregator which will be gathering the logs
|
static String |
USE_MASTER_LOGGING_AGGREGATOR
Whether or not to use master logging aggregator
|
static boolean |
USE_MASTER_LOGGING_AGGREGATOR_DEFAULT
Default is not using master logging aggregator
|
Modifier and Type | Method and Description |
---|---|
static void |
aggregate(String message,
WorkerAggregatorUsage workerAggregatorUsage,
org.apache.hadoop.conf.Configuration conf)
Aggregate some message to master logging aggregator,
if the option for using it is set in the configuration.
|
static void |
logAggregatedValue(MasterAggregatorUsage masterAggregatorUsage,
org.apache.hadoop.conf.Configuration conf)
Print value of master logging aggregator on the master log,
if the option for using it is set in the configuration.
|
static void |
registerAggregator(MasterAggregatorUsage masterAggregatorUsage,
org.apache.hadoop.conf.Configuration conf)
Register master logging aggregator,
if the option for using it is set in the configuration.
|
static void |
setUseMasterLoggingAggregator(boolean useMasterLoggingAggregator,
org.apache.hadoop.conf.Configuration conf)
Set whether or not master logging aggregator should be used
|
static boolean |
useMasterLoggingAggregator(org.apache.hadoop.conf.Configuration conf)
Check if master logging aggregator is used.
|
public static final String USE_MASTER_LOGGING_AGGREGATOR
public static final boolean USE_MASTER_LOGGING_AGGREGATOR_DEFAULT
public static final String MASTER_LOGGING_AGGREGATOR_NAME
public static boolean useMasterLoggingAggregator(org.apache.hadoop.conf.Configuration conf)
conf
- Configurationpublic static void setUseMasterLoggingAggregator(boolean useMasterLoggingAggregator, org.apache.hadoop.conf.Configuration conf)
useMasterLoggingAggregator
- Whether or not we want
master logging aggregator to be usedconf
- Configurationpublic static void aggregate(String message, WorkerAggregatorUsage workerAggregatorUsage, org.apache.hadoop.conf.Configuration conf)
message
- Message to logworkerAggregatorUsage
- Worker aggregator usage
(can be Vertex, WorkerContext, etc)conf
- Configurationpublic static void registerAggregator(MasterAggregatorUsage masterAggregatorUsage, org.apache.hadoop.conf.Configuration conf)
masterAggregatorUsage
- Master aggregator usageconf
- Configurationpublic static void logAggregatedValue(MasterAggregatorUsage masterAggregatorUsage, org.apache.hadoop.conf.Configuration conf)
masterAggregatorUsage
- Master aggregator usageconf
- ConfigurationCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.