Introduction
Standard MapReduce implementations, such as Apache Hadoop, were originally designed for stable, dedicated clusters where nodes are homogeneous and consistently available. However, modern computing environments often include "pervasive grids"—networks of volatile and heterogeneous resources like office desktops and mobile devices. This paper explores the challenges of deploying MapReduce in these "wild" environments and proposes solutions through the PER-MARE project.
The Challenge of Pervasive Grids
Pervasive grids present three primary obstacles for traditional MapReduce frameworks:
- Volatility: Nodes frequently join or leave the network, such as when a user shuts down a PC or a mobile device loses connectivity.
- Heterogeneity: Grids often mix high-performance workstations with low-power tablets, leading to significant variations in CPU and RAM.
- Dynamic Resource Management: Availability fluctuates in real-time as users run local applications.
Traditional Hadoop architectures often rely on a centralized JobTracker, which acts as a single point of failure. If the JobTracker crashes, the entire job is lost, making it unsuitable for highly volatile environments where node stability cannot be guaranteed.
The PER-MARE Project: Proposed Solutions
The authors investigate two distinct approaches to address these challenges: enhancing existing Hadoop frameworks and developing a decentralized P2P alternative.
Enhancing Hadoop with Context-Awareness
To handle heterogeneity, the researchers developed a "collector module" using the standard Java monitoring API. Instead of relying on static configuration files, this module detects real-time RAM and CPU availability and reports it to the YARN ResourceManager.
Additionally, they improved fault tolerance by using Apache ZooKeeper to replicate the JobTracker state. By taking snapshots and using ZooKeeper for leader election, the system can automatically promote a new master node upon failure, ensuring job continuity without requiring a full restart.
CloudFIT: A P2P Alternative
As a more radical departure, the authors implemented MapReduce on top of CloudFIT, a decentralized middleware based on the Pastry P2P overlay. In this model, nodes are organized in a logical ring and share task statuses. If a node leaves, its unfinished work is simply reassigned from a shared task list, eliminating the master-node bottleneck entirely.
Experimental Evaluation
The systems were evaluated on the Grid’5000 testbed using two benchmarks:
- TeraSort: Sorting a 5GB dataset to test the context-aware scheduler's efficiency.
- WordCount: Processing the Gutenberg Project Science Fiction Bookshelf to compare Hadoop against the CloudFIT implementation.
Key Insights
- The Cost of Static Configurations: In heterogeneous grids, Hadoop’s default settings often underestimate node capacity. Real-time context awareness allowed the scheduler to launch tasks immediately rather than in waves, significantly reducing total runtime.
- Speculative Execution Risks: Standard Hadoop's "speculative execution" can backfire in heterogeneous environments by launching duplicate tasks on even slower nodes, wasting resources without speeding up the job.
- Middleware Overhead: For smaller datasets, the setup time for Hadoop often exceeds computation time. Lightweight P2P models like CloudFIT are more efficient for these smaller-scale tasks.
Conclusion and Future Work
While the P2P approach shows promise for small data volumes, it currently faces challenges with data replication overhead. The authors plan to integrate more sophisticated storage solutions, such as the PAST distributed file system, to optimize replication factors. Future work will also expand context-awareness to include network latency and disk I/O metrics to further refine scheduling in unpredictable environments.
Summary updated