Skip to main content
QUICK REVIEW

[Paper Review] Integrating R and Hadoop for Big Data Analysis

Bogdan Oancea, Raluca Mariana Drăgoescu|arXiv (Cornell University)|Jul 18, 2014
Data Mining Algorithms and ApplicationsComputer Science2 references14 citations
TL;DR

This paper proposes and evaluates three integration methods—R with Streaming, RHipe, and RHadoop—for combining R’s statistical and visualization capabilities with Hadoop’s scalable big data processing. It demonstrates that RHadoop offers the most seamless integration, enabling efficient distributed computing on Hadoop clusters while retaining R’s analytical strengths.

ABSTRACT

Analyzing and working with big data could be very diffi cult using classical means like relational database management systems or desktop software packages for statistics and visualization. Instead, big data requires large clusters with hundreds or even thousands of computing nodes. Offi cial statistics is increasingly considering big data for deriving new statistics because big data sources could produce more relevant and timely statistics than traditional sources. One of the software tools successfully and wide spread used for storage and processing of big data sets on clusters of commodity hardware is Hadoop. Hadoop framework contains libraries, a distributed fi le-system (HDFS), a resource-management platform and implements a version of the MapReduce programming model for large scale data processing. In this paper we investigate the possibilities of integrating Hadoop with R which is a popular software used for statistical computing and data visualization. We present three ways of integrating them: R with Streaming, Rhipe and RHadoop and we emphasize the advantages and disadvantages of each solution.

Motivation & Objective

  • Address the challenge of analyzing large-scale datasets beyond the capabilities of traditional statistical software and relational databases.
  • Enable scalable statistical computing by integrating R, a leading tool for statistical analysis, with Hadoop’s distributed processing framework.
  • Evaluate multiple integration approaches to identify the most effective method for combining R’s analytical power with Hadoop’s distributed storage and computation.
  • Provide guidance for data scientists and researchers on selecting the optimal R-Hadoop integration technique based on performance, usability, and functionality.

Proposed method

  • Utilize Hadoop’s MapReduce programming model to distribute data processing tasks across clusters of commodity hardware.
  • Implement R with Streaming by treating R scripts as mapper and reducer functions in Hadoop jobs, enabling data flow through standard input/output streams.
  • Employ RHipe (R Hadoop Integrated Programming Environment) to run R code directly on Hadoop nodes, allowing in-JVM execution and improved performance over streaming.
  • Use RHadoop, a comprehensive R package ecosystem, to interface directly with HDFS and Hadoop’s YARN resource manager, enabling native R functions to process big data.
  • Benchmark and compare the three approaches in terms of development complexity, execution speed, and support for complex statistical operations.
  • Leverage R’s rich statistical and visualization libraries within distributed environments to maintain analytical fidelity on large datasets.

Experimental results

Research questions

  • RQ1How can R be effectively integrated with Hadoop to enable scalable statistical analysis on big data?
  • RQ2What are the performance trade-offs between R with Streaming, RHipe, and RHadoop for distributed data processing?
  • RQ3Which integration method best preserves R’s analytical capabilities while enabling efficient execution on Hadoop clusters?
  • RQ4How do development complexity and ease of implementation vary across the three integration approaches?
  • RQ5To what extent can R’s statistical and visualization functions be efficiently executed in a distributed Hadoop environment?

Key findings

  • RHadoop provides the most seamless and efficient integration, allowing direct use of R functions on Hadoop clusters with minimal code modification.
  • R with Streaming offers a simple, portable approach but incurs performance overhead due to process spawning and I/O serialization.
  • RHipe improves performance over streaming by executing R code within the Hadoop JVM, reducing I/O latency and enabling better memory management.
  • RHadoop supports full integration with HDFS and YARN, enabling native data access and job submission from R, which enhances usability and scalability.
  • The choice of integration method significantly affects development time, execution efficiency, and support for complex statistical workloads.
  • All three methods enable statistical analysis on big data, but RHadoop emerges as the most suitable for production-scale analytics due to its robustness and feature set.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.