forked from RevolutionAnalytics/rmr2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
46 lines (31 loc) · 1.55 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
output:
html_document:
keep_md: yes
---
```{r, echo=FALSE}
library(knitr)
opts_chunk$set(echo=TRUE, eval=TRUE, tidy=FALSE, comment="", cache=FALSE, error=TRUE)
```
```{r, echo=FALSE}
library(httr)
library(purrr)
tags = content(GET("https://api.github.com/repos/rzilla/rmr2/tags"))
version = grep(pattern = "^\\d+\\.\\d+\\.\\d+$", x = map(tags, "name"), value = TRUE)[[1]]
```
# rmr2
This package enable writing R programs for the Hadoop Mapreduce system, that is parallel distributed programs for the most popular big data platform.
## Requirements
- A Hadoop custer running any recent Hadoop distribution (CDH3 and higher, Apache Hadoop 2.2.0 and higher, HDP2 and higher)
- R installed on each node of the cluster (3.0 or higher)
## Installation
`rmr2` itself needs to be installed on each node with the following expression:
```{r, eval = FALSE}
install.packages("rmr2", repos = c("http://archive.rzilla.org", unlist(options("repos"))))
```
## Configuration
`rmr2` needs two env variables to be set (only on the master node): `HADOOP_CMD` and `HADOOP_STREAMING`. `HADOOP_CMD` should contain the main `hadoop` command whereas `HADOOP_JAR` should be set to the streaming jar, named something like `hadoop-streaming*.jar`, where the exact naming depends on version and distribution. Optionally, `HDFS_CMD` can be set to help `rmr` locate the `hdfs` command executable, which at this time only spares a few warnings, but may be mandatory in the future.
## Version
```{r, echo=FALSE, results='asis'}
cat("The current version is", version, ".")
```