Skip to content

Commit ef02cee

Browse files
committed
Bumping version to 0.0.15
1 parent 93fc753 commit ef02cee

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Utility belt to handle data on AWS.
44
5-
[![Release](https://img.shields.io/badge/release-0.0.14-brightgreen.svg)](https://pypi.org/project/awswrangler/)
5+
[![Release](https://img.shields.io/badge/release-0.0.15-brightgreen.svg)](https://pypi.org/project/awswrangler/)
66
[![Downloads](https://img.shields.io/pypi/dm/awswrangler.svg)](https://pypi.org/project/awswrangler/)
77
[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7-brightgreen.svg)](https://pypi.org/project/awswrangler/)
88
[![Documentation Status](https://readthedocs.org/projects/aws-data-wrangler/badge/?version=latest)](https://aws-data-wrangler.readthedocs.io/en/latest/?badge=latest)
@@ -280,7 +280,7 @@ 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",
283+
spark_jars_path=[f"s3://...jar"],
284284
maximize_resource_allocation=True,
285285
keep_cluster_alive_when_no_steps=True,
286286
termination_protected=False

awswrangler/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
__title__ = "awswrangler"
22
__description__ = "Utility belt to handle data on AWS."
3-
__version__ = "0.0.14"
3+
__version__ = "0.0.15"
44
__license__ = "Apache License 2.0"

awswrangler/emr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ def _build_cluster_args(**pars):
111111
"Properties": {}
112112
}
113113
if pars["spark_jars_path"] is not None:
114-
spark_defaults["Properties"]["spark.jars"] = pars["spark_jars_path"]
114+
spark_defaults["Properties"]["spark.jars"]: str = ",".join(pars["spark_jars_path"])
115115
if pars["spark_defaults"] is not None:
116116
for k, v in pars["spark_defaults"].items():
117-
spark_defaults["Properties"][k] = v
117+
spark_defaults["Properties"][k]: str = v
118118
args["Configurations"].append(spark_defaults)
119119

120120
# Applications
@@ -313,7 +313,7 @@ def create_cluster(self,
313313
security_groups_slave_additional: Optional[List[str]] = None,
314314
security_group_service_access: Optional[str] = None,
315315
spark_log_level: str = "WARN",
316-
spark_jars_path: Optional[str] = None,
316+
spark_jars_path: Optional[List[str]] = None,
317317
spark_defaults: Dict[str, str] = None,
318318
maximize_resource_allocation: bool = False,
319319
steps: Optional[List[Dict[str, Collection[str]]]] = None,
@@ -364,7 +364,7 @@ def create_cluster(self,
364364
:param security_groups_slave_additional: A list of additional Amazon EC2 security group IDs for the core and task nodes.
365365
:param security_group_service_access: The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
366366
:param spark_log_level: log4j.rootCategory log level (ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF, TRACE)
367-
:param spark_jars_path: spark.jars (https://spark.apache.org/docs/latest/configuration.html) (e.g. s3://...)
367+
:param spark_jars_path: spark.jars (e.g. [s3://.../foo.jar, s3://.../boo.jar]) (https://spark.apache.org/docs/latest/configuration.html)
368368
:param spark_defaults: (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-spark-configure.html#spark-defaults)
369369
:param maximize_resource_allocation: Configure your executors to utilize the maximum resources possible (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-spark-configure.html#emr-spark-maximizeresourceallocation)
370370
:param steps: Steps definitions (Obs: Use EMR.build_step() to build that)

docs/source/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ 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",
244+
spark_jars_path=[f"s3://...jar"],
245245
maximize_resource_allocation=True,
246246
keep_cluster_alive_when_no_steps=True,
247247
termination_protected=False

testing/test_awswrangler/test_emr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_cluster_single_node(session, bucket, cloudformation_outputs):
129129
visible_to_all_users=True,
130130
key_pair_name=None,
131131
spark_log_level="ERROR",
132-
spark_jars_path=f"s3://{bucket}/jars/",
132+
spark_jars_path=[f"s3://{bucket}/jars/"],
133133
spark_defaults={"spark.default.parallelism": "400"},
134134
maximize_resource_allocation=True,
135135
keep_cluster_alive_when_no_steps=False,

0 commit comments

Comments
 (0)