public class FacebookConfiguration extends Object implements BulkConfigurator
Modifier and Type | Field and Description |
---|---|
static BooleanConfOption |
CONFIGURE_JAVA_OPTS
Whether to configure java opts.
|
static FloatConfOption |
CORES_FRACTION_DURING_COMMUNICATION
Which fraction of cores to use for threads when computation and
communication overlap
|
static IntConfOption |
MAPPER_CORES
How many cores per mapper should we use
|
static IntConfOption |
MAPPER_MEMORY
How much memory per mapper should we use
|
static StrConfOption |
MAPRED_JAVA_JOB_OPTIONS
Java options passed to mappers.
|
static FloatConfOption |
NEW_GEN_MEMORY_FRACTION
Fraction of
MAPPER_MEMORY to use for new generation |
static BooleanConfOption |
USE_G1_COLLECTOR
Note: using G1 is often faster, but we've seen it add off heap memory
overhead which can cause issues.
|
Constructor and Description |
---|
FacebookConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
configure(GiraphConfiguration conf)
Expand GiraphConfiguration with default Facebook settings.
|
static List<String> |
getGcJavaOpts(org.apache.hadoop.conf.Configuration conf)
Get garbage collection java opts to use
|
static List<String> |
getMemoryJavaOpts(org.apache.hadoop.conf.Configuration conf)
Get memory java opts to use
|
public static final IntConfOption MAPPER_MEMORY
public static final IntConfOption MAPPER_CORES
public static final FloatConfOption NEW_GEN_MEMORY_FRACTION
MAPPER_MEMORY
to use for new generationpublic static final BooleanConfOption USE_G1_COLLECTOR
public static final FloatConfOption CORES_FRACTION_DURING_COMMUNICATION
public static final BooleanConfOption CONFIGURE_JAVA_OPTS
public static final StrConfOption MAPRED_JAVA_JOB_OPTIONS
public void configure(GiraphConfiguration conf)
MAPPER_CORES
and number of workers to use
are already set correctly in Configuration.
For all conf options it changed it will only do so if they are not set,
so it won't override any of your custom settings. The only exception is
mapred.child.java.opts, this one will be overwritten depending on the
CONFIGURE_JAVA_OPTS
settingconfigure
in interface BulkConfigurator
conf
- Configurationpublic static List<String> getMemoryJavaOpts(org.apache.hadoop.conf.Configuration conf)
conf
- ConfigurationCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.