Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Feature: enable dynamic allocation by default (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafreck committed Feb 9, 2018
1 parent d75ae44 commit 9bd3490
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def _merge_dict(self, config):
self.spark_defaults_conf = self.__convert_to_path(spark_configuration.get('spark_defaults_conf'))
self.spark_env_sh = self.__convert_to_path(spark_configuration.get('spark_env_sh'))
self.core_site_xml = self.__convert_to_path(spark_configuration.get('core_site_xml'))
self.jars = [self.__convert_to_path(jar) for jar in spark_configuration.get('jars')]
self.jars = [self.__convert_to_path(jar) for jar in spark_configuration.get('jars') or []]

def __convert_to_path(self, str_path):
if str_path:
Expand Down
4 changes: 4 additions & 0 deletions config/spark-defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ spark.jars /home/spark-current/jars/azure-storage-2.0.0.jar
spark.deploy.recoveryMode FILESYSTEM
spark.deploy.recoveryDirectory /root/

# enable spark shuffle service
spark.shuffle.service.enabled true

# enable dynamic allocation
spark.dynamicAllocation.enabled true

0 comments on commit 9bd3490

Please sign in to comment.