Skip to content

Commit

Permalink
Improve EMR.create_cluster() examples on the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
igorborgest committed Oct 27, 2019
1 parent a729133 commit 93fc753
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ cluster_id = session.emr.create_cluster(
applications=["Hadoop", "Spark", "Ganglia", "Hive"],
visible_to_all_users=True,
key_pair_name=None,
spark_jars_path=f"s3://...jar",
maximize_resource_allocation=True,
keep_cluster_alive_when_no_steps=True,
termination_protected=False
)
print(cluster_id)
```
Expand Down
4 changes: 4 additions & 0 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ Create EMR cluster
applications=["Hadoop", "Spark", "Ganglia", "Hive"],
visible_to_all_users=True,
key_pair_name=None,
spark_jars_path=f"s3://...jar",
maximize_resource_allocation=True,
keep_cluster_alive_when_no_steps=True,
termination_protected=False
)
print(cluster_id)
Expand Down

0 comments on commit 93fc753

Please sign in to comment.