Skip to content
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

[custom-images] install_gpu_driver.sh does not configure spark when run as startup script with custom-images #110 #1303

Open
cjac opened this issue Feb 18, 2025 · 0 comments
Assignees

Comments

@cjac
Copy link
Contributor

cjac commented Feb 18, 2025

Problem

Although the gpu driver installer completes successfully when used as an image customization script, it does not create or alter the spark defaults file to include gpu parameters. This is because at the time of the run of the startup script, bdutil has not yet created the files.

See configure_yarn_resources[1] for example

This is a duplicate of the same issue[2] in the custom-images repository

Proposed solution:

Detect whether the script is being run as an image customization. If custom image environment not detected, run as normal; if custom image environment is detected, delay execution by installing a service to run the configuration update phase on first boot.

Scripts to be run after first boot can be placed into a directory such as /etc/rc.local.d/

An entry could be added to /etc/rc.local to

  • check for the existence of files in this directory
  • execute them
  • upon successful execution, remove them

[1]

function configure_yarn_resources() {

[2] GoogleCloudDataproc/custom-images#110

@cjac cjac self-assigned this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant