public class HadoopConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DFLT_EXTERNAL_EXECUTION
Default value for external execution flag.
|
static long |
DFLT_FINISHED_JOB_INFO_TTL
Default finished job info time-to-live.
|
static int |
DFLT_MAX_PARALLEL_TASKS
Default value for the max parallel tasks.
|
static int |
DFLT_MAX_TASK_QUEUE_SIZE
Default value for the max task queue size.
|
Constructor and Description |
---|
HadoopConfiguration()
Default constructor.
|
HadoopConfiguration(HadoopConfiguration cfg)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getFinishedJobInfoTtl()
Gets finished job info time-to-live in milliseconds.
|
HadoopMapReducePlanner |
getMapReducePlanner()
Gets Hadoop map-reduce planner, a component which defines job execution plan based on job
configuration and current grid topology.
|
int |
getMaxParallelTasks()
Gets max number of local tasks that may be executed in parallel.
|
int |
getMaxTaskQueueSize()
Gets max task queue size.
|
@Nullable String[] |
getNativeLibraryNames()
Get native library names.
|
HadoopConfiguration |
setFinishedJobInfoTtl(long finishedJobInfoTtl)
Sets finished job info time-to-live.
|
HadoopConfiguration |
setMapReducePlanner(HadoopMapReducePlanner planner)
Sets Hadoop map-reduce planner, a component which defines job execution plan based on job
configuration and current grid topology.
|
HadoopConfiguration |
setMaxParallelTasks(int maxParallelTasks)
Sets max number of local tasks that may be executed in parallel.
|
HadoopConfiguration |
setMaxTaskQueueSize(int maxTaskQueueSize)
Sets max task queue size.
|
HadoopConfiguration |
setNativeLibraryNames(String... libNames)
Set native library names.
|
String |
toString() |
public static final long DFLT_FINISHED_JOB_INFO_TTL
public static final boolean DFLT_EXTERNAL_EXECUTION
public static final int DFLT_MAX_PARALLEL_TASKS
public static final int DFLT_MAX_TASK_QUEUE_SIZE
public HadoopConfiguration()
public HadoopConfiguration(HadoopConfiguration cfg)
cfg
- Configuration to copy.public int getMaxParallelTasks()
public HadoopConfiguration setMaxParallelTasks(int maxParallelTasks)
maxParallelTasks
- Max number of local tasks that may be executed in parallel.this
for chaining.public int getMaxTaskQueueSize()
public HadoopConfiguration setMaxTaskQueueSize(int maxTaskQueueSize)
maxTaskQueueSize
- Max task queue size.this
for chaining.public long getFinishedJobInfoTtl()
public HadoopConfiguration setFinishedJobInfoTtl(long finishedJobInfoTtl)
finishedJobInfoTtl
- Finished job info time-to-live.this
for chaining.public HadoopMapReducePlanner getMapReducePlanner()
public HadoopConfiguration setMapReducePlanner(HadoopMapReducePlanner planner)
planner
- Map-reduce planner.this
for chaining.@Nullable public @Nullable String[] getNativeLibraryNames()
Ignite Hadoop Accelerator executes all Hadoop jobs and tasks in the same process, isolating them with help of classloaders. If Hadoop job or task loads a native library, it might lead to exception, because Java do not allow to load the same library multiple times from different classloaders. To overcome the problem, you should to the following:
LifecycleBean
is a good candidate
for this;System.load(String)
and System.loadLibrary(String)
calls from your job/task.public HadoopConfiguration setNativeLibraryNames(@Nullable String... libNames)
getNativeLibraryNames()
for more information.libNames
- Native library names.this
for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019