Big Data 8 min read

Essential MapReduce, HBase, and Spark Configuration Parameters for Faster, More Stable Jobs

This article compiles the most frequently used configuration parameters for MapReduce, HBase, and Spark, explaining their purposes and recommended settings to improve job performance, reliability, and resource utilization in big‑data environments.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Essential MapReduce, HBase, and Spark Configuration Parameters for Faster, More Stable Jobs

Background

MapReduce and Spark expose hundreds of configuration parameters; users can tune them for faster, more stable applications. This article lists the most commonly used parameters.

Key MapReduce Configuration Parameters

1. Resource‑related parameters

mapreduce.map.memory.mb

: Maximum memory (MB) a Map task can use, default 1024. Exceeding this kills the task. mapreduce.reduce.memory.mb: Maximum memory (MB) a Reduce task can use, default 1024. mapreduce.map.java.opts: JVM options for Map tasks, e.g., "-Xmx1024m -verbose:gc -Xloggc:/tmp/@[email protected]". mapreduce.reduce.java.opts: JVM options for Reduce tasks, similar format. mapreduce.map.cpu.vcores: Number of CPU cores for each Map task, default 1. mapreduce.reduce.cpu.vcores: Number of CPU cores for each Reduce task, default 1.

2. Fault‑tolerance parameters

mapreduce.map.maxattempts

: Maximum retries for a Map task, default 4. mapreduce.reduce.maxattempts: Maximum retries for a Reduce task, default 4. mapreduce.map.failures.maxpercent: Job fails if the percentage of failed Map tasks exceeds this value; default 0. Set >0 (e.g., 5) to tolerate some failures. mapreduce.reduce.failures.maxpercent: Same for Reduce tasks, default 0. mapreduce.task.timeout: Task timeout in milliseconds, default 300000. Increase if tasks run long.

3. Local‑mode parameters

Set the following for running MapReduce locally:

mapreduce.framework.name=local
mapreduce.jobtracker.address=local
fs.defaultFS=local

4. Efficiency and stability parameters

mapreduce.map.speculative

: Enable speculative execution for Map tasks, default false. mapreduce.reduce.speculative: Enable speculative execution for Reduce tasks, default false. mapreduce.job.user.classpath.first & mapreduce.task.classpath.user.precedence: Choose user‑provided JAR over Hadoop JAR when classes conflict, default false. mapreduce.input.fileinputformat.split.minsize: Minimum split size for file‑based input formats, default 134217728 (one block).

HBase Related Configuration Parameters

hbase.rpc.timeout

: RPC timeout, default 60s; avoid setting too low. ipc.socket.timeout: Socket connection timeout, should be ≤ RPC timeout, default 20s. hbase.client.retries.number: Number of retries, default 14, can be set to 3. hbase.client.pause: Pause between retries, default 1s, can be reduced (e.g., 100ms). hbase.regionserver.lease.period: Lease period for scan queries, default 60s.

Spark Related Configuration Parameters

1. Efficiency and stability

Enable intermediate result consolidation and speculation:

spark.shuffle.consolidateFiles=true
spark.speculation=true

2. Fault‑tolerance

Increase these values for better resilience:

spark.task.maxFailures=8
spark.akka.timeout=300
spark.network.timeout=300
spark.yarn.max.executor.failures=100
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Big DataConfigurationHBaseMapReduceSpark
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.