Git Product home page Git Product logo

Comments (11)

liyinan926 avatar liyinan926 commented on May 11, 2024 1

BTW: I actually plan to add a command-line tool, say, sparkctl that supports staging local dependencies to, for example, the resource staging server.

from spark-operator.

liyinan926 avatar liyinan926 commented on May 11, 2024

It needs to run on a cluster with alpha features enabled to be able to use the initializer. See https://kubernetes.io/docs/admin/extensible-admission-controllers/#enable-initializers-alpha-feature.

from spark-operator.

devtagare avatar devtagare commented on May 11, 2024

Li, appreciate the quick response. Any other way we can run it if alpha feature is not turned on ?

from spark-operator.

liyinan926 avatar liyinan926 commented on May 11, 2024

I can add a flag to allow disabling the initializer so you can run on a non-alpha cluster.

from spark-operator.

devtagare avatar devtagare commented on May 11, 2024

perfect thanks. Appreciate it.

from spark-operator.

liyinan926 avatar liyinan926 commented on May 11, 2024

Ref: #28. enable-initializer is true by default, you can set it to false in spark-operator.yaml.

from spark-operator.

devtagare avatar devtagare commented on May 11, 2024

Thanks for the quick turn-around.

One more question, how can we run an application when the application jars are not packaged into the driver and/or executor.

eg : with the spark-k8s project I can specify,
init-container:
image: "path to my init container image"

In submission.go I can see a note to the effect that "// Note that when the controller submits the application, it expects that all dependencies are local"

What is the recommended approach here? eg : resource staging server, persistent volume claim with jars on it.(If yes then, how would this be mounted at runtime?)

Appreciate the help!

from spark-operator.

liyinan926 avatar liyinan926 commented on May 11, 2024

What we often do is to stage jars/files to, e.g., a GCS bucket, (optionally) make them public, and list the https urls in the deps.jars and deps.files sections. If you don't want to make the dependencies on GCS public, you will need a custom init-container image for downloading from GCS. See https://gist.github.com/liyinan926/f9e81f7b54d94c05171a663345eb58bf for an example init-container image.

from spark-operator.

liyinan926 avatar liyinan926 commented on May 11, 2024

Ref: #15 tracks work for supporting non-container-local dependencies.

from spark-operator.

liyinan926 avatar liyinan926 commented on May 11, 2024

@devtagare Can this be closed now?

from spark-operator.

devtagare avatar devtagare commented on May 11, 2024

Yes. Thanks for the quick turnaround.

from spark-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.