-
Notifications
You must be signed in to change notification settings - Fork 244
Set SPARK_DRIVER_TYPE for spark-run Spark drivers #4140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set SPARK_DRIVER_TYPE for spark-run Spark drivers #4140
Conversation
paasta_tools/cli/cmds/spark_run.py
Outdated
| # Prepare configuration required for some of the services | ||
| scs_args = { | ||
| "cluster_manager": args.cluster_manager, | ||
| "spark_app_base_name": app_base_name, | ||
| "docker_image": docker_image_digest, | ||
| "user_spark_opts": user_spark_opts, | ||
| "paasta_cluster": paasta_cluster, | ||
| "paasta_pool": args.pool, | ||
| "paasta_service": args.service, | ||
| "paasta_instance": paasta_instance, | ||
| "extra_volumes": cast(List[Mapping[str, str]], volumes), | ||
| "force_spark_resource_configs": args.force_spark_resource_configs, | ||
| "k8s_server_address": k8s_server_address, | ||
| "jira_ticket": args.jira_ticket, | ||
| "service_account_name": service_account_name, | ||
| "ui_port": int(spark_conf["spark.ui.port"]), | ||
| "user": os.environ.get("USER"), | ||
| "aws_account_id": get_aws_account_id(aws_creds), | ||
| } | ||
| args.scs = json.dumps(scs_args, indent=4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we stuff this into spark_conf later - should we try to do this in spark_conf_builder.get_spark_conf() instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea, will take a look and see which is better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this code to spark_conf_builder.get_spark_conf()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nemacysts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like a test is failing since we need to update it to account for this new env var - but lgtm otherwise
Thanks, i am fixing the tests |
… github.com:Yelp/paasta into timma/pass_config_required_for_some_of_the_services
Added code required to pass configs required for some of the services