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

[TASK][MEDIUM] Resource isolation in Spark Scala mode #6265

Open
2 of 3 tasks
pan3793 opened this issue Apr 7, 2024 · 3 comments · May be fixed by #6331
Open
2 of 3 tasks

[TASK][MEDIUM] Resource isolation in Spark Scala mode #6265

pan3793 opened this issue Apr 7, 2024 · 3 comments · May be fixed by #6331
Assignees

Comments

@pan3793
Copy link
Member

pan3793 commented Apr 7, 2024

What's the level of this task?

MEDIUM

Code of Conduct

Search before creating

  • I have searched in the task list and found no similar tasks.

Mentor

  • I have sufficient expertise on this task, and I volunteer to be a mentor of this task to guide contributors through the task.

Skill requirements

  • Knowledge of Spark/Scala REPL
  • Knowledge of Classloader, JVM serialization

Background and Goals

The current Kyuubi Scala mode reuses the code of Spark Shell, while Spark Shell is designed for single session and client deploy mode, which has certain limitations for Kyuubis multi-tenant use cases.

Thanks to Spark Connect, a similar mechanism is required to support isolated sessions (i.e. isolated resources/classloader) so that each REPL user does not conflict with other users on the same cluster.

As of Spark 3.5, the core/sql already has infrastructure to support isolated resources/classloader, see details in

  • SPARK-44078
  • SPARK-44146
  • SPARK-45856

Implementation steps

Investigate how could Kyuubi Spark Scala mode leverage those infrastructures to support session-level isolated resources/classloader in Spark 3.5+

Additional context

Introduction of 2024H1 Kyuubi Code Contribution Program

@beryllw
Copy link
Contributor

beryllw commented Apr 7, 2024

Intersted in this, Please assign this task to me.

@pan3793
Copy link
Member Author

pan3793 commented Apr 7, 2024

@beryllw thanks, assgined

@zhaohehuhu
Copy link
Contributor

Interesting task

beryllw added a commit to beryllw/incubator-kyuubi that referenced this issue Apr 18, 2024
beryllw added a commit to beryllw/incubator-kyuubi that referenced this issue Apr 22, 2024
beryllw added a commit to beryllw/incubator-kyuubi that referenced this issue Apr 22, 2024
@beryllw beryllw linked a pull request Apr 22, 2024 that will close this issue
4 tasks
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

Successfully merging a pull request may close this issue.

3 participants