Skip to content
forked from cwensel/bash-emr

Simple bash functions for manipulating Amazon Elastic MapReduce clusters

Notifications You must be signed in to change notification settings

amansk/bash-emr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

bash-emr

This is a simple set of bash functions for manipulating a Amazon Elastic MapReduce clusters.

This work is licensed under a Creative Commons Attribution 3.0 Unported License.

Install

You must install the Elastic MapReduce Ruby client.

You then must set the EMR_HOME environment variable to the ruby client install root directory.

export EMR_HOME=/path/to/elastic-mapreduce-ruby

Finally, you must source the setenv.sh file

. setenv.sh

Usage

emr

This is shorthand for calling from the shell. emr

emrset

When you start a flow on EMR, you will be given a flow id. Use emrset to set the flow id for use by many of the other commands emrset

Calling emrset without the id returns the current flow id.

emrhost

Will return the current master node on the EMR cluster.

emrlogin

Will remotely login to the master node.

emrstat

Will return the current status of a given running flow.

emrterminate

Will terminate your remote EMR cluster.

emrscreen

Will launch screen on the master node. Screen must be already installed. If a screen instance is already running, this command will automatically attach.

emrtail

Will automatically 'tail' the current flow step logs. emrtail 2

Without a step number, a list of available steps will be displayed.

emrproxy

Will create a local SOCKS proxy to the master node. This is useful for accessing the JobTracker and NameNode. You must install FoxyProxy in FireFox for this to work best.

emrscp

Will scp a given file to the remote master node. emrscp my-hadoop-app.jar

This is useful if you leave your EMR cluster running and want to manually spawn jobs from emrlogin or emrscreen.

About

Simple bash functions for manipulating Amazon Elastic MapReduce clusters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published