Open night2201 opened 4 months ago
Hi @night2201 , Yes, it's definitely possible to achieve spark in mode client. This approach is suitable for smaller Spark applications or when you want to leverage the resources of an existing Kubernetes cluster without managing a dedicated Spark environment.
In order to use Jupyter Notebook with spark on k8s in mode cluster, you can add K8s deployment, service in helm chart and test it. In order to solve spark jar files copy problem from local notebook to spark cluster in k8s, you can use PersistentVolumeClaim from "livycluster/templates/pvc.yaml" and share the jar files across Jupyter Notebook and Spark pods.
You can fork this repo and add your helm chart for Jupyter Notebook so that I can debug and try to help you further on this.
Thanks @askhatri for replying, I will check
Hi @askhatri, I have tested with jupter notebook. But I faced an error I enable hive context following this link but it's not working for me
I use the same image in helm. Currently, I don't have solution for this problem. Do you have any idea for it?
Hi @night2201 , No. I am not sure about this error.
Hi I am testing Jupyter Notebook with spark on k8s in mode cluster. However, I faced with some problems:
So, can run spark in mode client through Livy? Now, I realize that in client mode will resolve the above problem