How can I create a static private IP address and associate it with the master node of an Amazon EMR cluster using a bootstrap action?

A static private IP address is useful for connecting to the master node using SSH and creating SSH tunnels to view web interfaces hosted on the master node.

  1. Sign in to GitHub.
  2. Download the script from AWS Labs.
  3. Save the script in an Amazon Simple Storage Service (Amazon S3) bucket.
  4. Specify the script as a custom bootstrap action while launching an Amazon EMR cluster. You can also run the script as an Amazon EMR step. The script requires an argument that is a private IP address from the CIDR range of your subnet. The script attaches that private IP address to the network interface (eth0) of the master node. It also configures the network settings to redirect all traffic from the secondary IP address to the primary IP address.
  5. To find the new IP address, open the Amazon Elastic Compute Cloud (Amazon EC2) console, and then select the EC2 instance that is acting as the master node of the Amazon EMR cluster. The new IP address appears on the Description tab, in the Secondary private IPs field.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-08-10