Skip to content

Commit 93fc753

Browse files
committed
Improve EMR.create_cluster() examples on the docs
1 parent a729133 commit 93fc753

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ cluster_id = session.emr.create_cluster(
280280
applications=["Hadoop", "Spark", "Ganglia", "Hive"],
281281
visible_to_all_users=True,
282282
key_pair_name=None,
283+
spark_jars_path=f"s3://...jar",
284+
maximize_resource_allocation=True,
285+
keep_cluster_alive_when_no_steps=True,
286+
termination_protected=False
283287
)
284288
print(cluster_id)
285289
```

docs/source/examples.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ Create EMR cluster
241241
applications=["Hadoop", "Spark", "Ganglia", "Hive"],
242242
visible_to_all_users=True,
243243
key_pair_name=None,
244+
spark_jars_path=f"s3://...jar",
245+
maximize_resource_allocation=True,
246+
keep_cluster_alive_when_no_steps=True,
247+
termination_protected=False
244248
)
245249
print(cluster_id)
246250

0 commit comments

Comments
 (0)