-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: add support for SparkConnect #539
base: main
Are you sure you want to change the base?
Conversation
pub const CONNECT_GRPC_PORT: i32 = 15002; | ||
pub const CONNECT_UI_PORT: i32 = 4040; | ||
|
||
pub const DUMMY_SPARK_CONNECT_GROUP_NAME: &str = "default"; |
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.
This is defined in common.rs
as well.
scs: &v1alpha1::SparkConnectServer, | ||
config: &v1alpha1::ExecutorConfig, | ||
pi: &ResolvedProductImage, | ||
config_map: &ConfigMap, |
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.
Not a fan of the abbreviations. I can live with scs
but pi
is probably not how you want to refer an image :) ?
ServicePort { | ||
name: Some(String::from("grpc")), | ||
port: CONNECT_GRPC_PORT, | ||
..ServicePort::default() | ||
}, | ||
ServicePort { | ||
name: Some(String::from("http")), | ||
port: CONNECT_UI_PORT, | ||
..ServicePort::default() | ||
}, | ||
]), |
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.
grpc
and http
are used as well in build_deployment
as well, constant?
# TODO: cannot use the PySpark job from the ConfigMap because it breaks | ||
# with a "iceberg.SparkWrite$WriterFactory" ClassNotfoundException. | ||
# Use the app bundled within spark-connect-client instead | ||
# "/app/simple-connect-app.py", | ||
# | ||
command: | ||
[ | ||
"/usr/bin/python", | ||
"/stackable/spark-connect-examples/python/simple-connect-app.py", | ||
"sc://spark-connect-server", | ||
] |
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.
What needs to be done to fix this?
Co-authored-by: Malte Sander <[email protected]>
Description
Part of: #284
See issue above for implemented features.
Definition of Done Checklist
Author
Reviewer
Acceptance