Skip to content

Commit

Permalink
Fix spark master assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
chi-yelp committed Aug 1, 2023
1 parent 8a553e3 commit 9e81260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service_configuration_lib/spark_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def _get_k8s_spark_env(
_paasta_instance = _get_k8s_resource_name_limit_size_with_hash(paasta_instance)

spark_env = {
'spark.master': f'k8s://https://k8s.{paasta_cluster}.paasta:6443',
'spark.executorEnv.PAASTA_SERVICE': paasta_service,
'spark.executorEnv.PAASTA_INSTANCE': paasta_instance,
'spark.executorEnv.PAASTA_CLUSTER': paasta_cluster,
Expand Down Expand Up @@ -311,7 +312,6 @@ def _get_k8s_spark_env(
elif include_self_managed_configs:
spark_env.update(
{
'spark.master': f'k8s://https://k8s.{paasta_cluster}.paasta:6443',
'spark.kubernetes.authenticate.caCertFile': f'{K8S_AUTH_FOLDER}/{paasta_cluster}-ca.crt',
'spark.kubernetes.authenticate.clientKeyFile': f'{K8S_AUTH_FOLDER}/{paasta_cluster}-client.key',
'spark.kubernetes.authenticate.clientCertFile': f'{K8S_AUTH_FOLDER}/{paasta_cluster}-client.crt',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name='service-configuration-lib',
version='2.18.0',
version='2.18.1',
provides=['service_configuration_lib'],
description='Start, stop, and inspect Yelp SOA services',
url='https://github.com/Yelp/service_configuration_lib',
Expand Down

0 comments on commit 9e81260

Please sign in to comment.