|
1 |
| -Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
2 |
| - |
3 |
| -Licensed under the Apache License, Version 2.0 (the "License"). You |
4 |
| -may not use this file except in compliance with the License. A copy of |
5 |
| -the License is located at |
6 |
| - |
7 |
| -http://aws.amazon.com/apache2.0/ |
8 |
| - |
9 |
| -or in the "license" file accompanying this file. This file is |
10 |
| -distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF |
11 |
| -ANY KIND, either express or implied. See the License for the specific |
12 |
| -language governing permissions and limitations under the License. |
13 |
| - |
14 |
| - |
15 | 1 | EMR bootstrap actions
|
16 | 2 | =====================
|
17 | 3 |
|
18 |
| -A bootstrap action is a shell script stored in [Amazon S3](http://aws.amazon.com/s3/) that [Amazon EMR](http://aws.amazon.com/elasticmapreduce/) executes on every node of your cluster. |
19 |
| -Bootstrap actions execute as the `hadoop` user by default; they execute with root privileges if you use `sudo`.<br>From the [Ruby EMR Command Line Interface](http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-cli-reference.html) you can reference a bootstrap action as follows: |
| 4 | +> **Warning**: This repository is undergoing updating and modernization – please bear with us. |
| 5 | +
|
| 6 | +A bootstrap action is a shell script stored in [Amazon S3](http://aws.amazon.com/s3/) that [Amazon EMR](https://aws.amazon.com/emr/) executes on every node of your cluster after boot and prior to application provisioning. |
| 7 | +Bootstrap actions execute as the `hadoop` user by default; commands can be executed with root privileges if you use `sudo`. |
| 8 | + |
| 9 | +From the [AWS CLI EMR `create-cluster` command](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/emr/create-cluster.html) you can reference a bootstrap action as follows: |
20 | 10 |
|
21 | 11 |
|
22 | 12 | ```sh
|
23 |
| ---bootstrap-action "s3://myawsbucket/FileName" --args "arg1,arg2" |
| 13 | +--bootstrap-actions Name=action-name,Path=s3://myawsbucket/FileName,Args=arg1,arg2 |
24 | 14 | ```
|
25 | 15 |
|
26 |
| -For more information about EMR Bootstrap actions see [DeveloperGuide](http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-bootstrap.html) |
| 16 | +For more information about EMR Bootstrap actions see [DeveloperGuide](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-bootstrap.html) |
27 | 17 |
|
28 | 18 | The code samples in this repository are meant to illustrate how to setup popular applications on Amazon EMR using bootstrap actions.
|
29 | 19 | They are not meant to be run in production and all users should carefully inspect code samples before running them.
|
|
0 commit comments