Amazon Elastic MapReduce
Developer Guide (API Version 2009-03-31)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

How to Call the Command Line Interface

The syntax that you use to run the command line interface (CLI) differs slightly depending on the operating system you use. In the following examples, commands are issued in either a terminal (Linux, UNIX, and Mac OS X) or a command (Windows) interface. Both examples assume that you are running the commands from the directory where you unzipped the Amazon EMR CLI.

In the Linux/UNIX/Mac OS X version of the CLI call, you use a period and slash (./) to indicate that the script is located in the current directory. The operating system automatically detects that the script is a Ruby script and uses the correct libraries to interpret the script. In the Windows version of the call, using the current directory is implied, but you have to explicitly specify which scripting engine to use by prefixing the call with "ruby".

Aside from the preceding operating-system–specific differences in how you call the CLI Ruby script, the way you pass options to the CLI is the same. For more information about the CLI options, see Command Line Interface Options.

In the directory where you installed the Amazon EMR CLI, issue commands in one of the following formats, depending on your operating system.

  • Linux, UNIX, and Mac OS X users:

    ./elastic-mapreduce Options
  • Windows users:

    ruby elastic-mapreduce Options