Creating an Amazon EMR job flow using the AWS Command Line Interface
AWS Command Line Interface (CLI) is a tool that allows us to manage our AWS services from the command line. In this recipe, we use AWS CLI to manage Amazon EMR services.
This recipe creates an EMR job flow using the AWS CLI to execute the WordCount sample from the Running Hadoop MapReduce computations using Amazon Elastic MapReduce recipe of this chapter.
The following are the prerequisites to get started with this recipe:
- Python 2.6.3 or higher
- pip—Python package management system
How to do it...
The following steps show you how to create an EMR job flow using the EMR command-line interface:
- Install AWS CLI in your machine using the pip installer:
$ sudo pip install awscli ...