Big Data Analytics with R and Hadoop by 2013
Author:2013
Language: eng
Format: mobi, epub
Publisher: Packt Publishing
Understanding how to run a MapReduce application
After the development of the Mapper and Reducer script with the R language, it's time to run them in the Hadoop environment. Before we execute this script, it is recommended to test them on the sample dataset with simple pipe operations.
$ cat gadata_sample.csv | ga_mapper.R |sort | ga_reducer.R
The preceding command will run the developed Mapper and Reducer scripts over a local machine. But it will run similar to the Hadoop streaming job. We need to test this for any issue that might occur at runtime or for the identification of programming or logical mistakes.
Now, we have Mapper and Reducer tested and ready to be run with the Hadoop streaming command. This Hadoop streaming operation can be executed by calling the generic jar command followed with the streaming command options as we learned in the Understanding the basics of Hadoop streaming section of this chapter. We can execute the Hadoop streaming job in the following ways:
From a command prompt
R or the RStudio console
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8301)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6748)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6724)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6603)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6386)
Driving Data Quality with Data Contracts by Andrew Jones(6335)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6098)
Learning SQL by Alan Beaulieu(5995)
Weapons of Math Destruction by Cathy O'Neil(5779)
Big Data Analysis with Python by Ivan Marin(5368)
Data Engineering with dbt by Roberto Zagni(4366)
Solidity Programming Essentials by Ritesh Modi(4013)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3874)
Pandas Cookbook by Theodore Petrou(3583)
Blockchain Basics by Daniel Drescher(3294)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2906)
Feature Store for Machine Learning by Jayanth Kumar M J(2815)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2796)
Mastering Python for Finance by Unknown(2744)
