-
Notifications
You must be signed in to change notification settings - Fork 76
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
File file:/tmp/history-server does not exist when configuring history server #46
Comments
Hi, the error you observe signals that there are not such file/directory in your Spark HS container. To make it work by default you should create the NFS PVC with name eg. historyserver:
pvc:
# to use a file system path for Spark events dir, set 'enablePVC' to true and mention the
# name of an already created persistent volume claim in existingClaimName.
# The volume will be mounted on /data in the pod
enablePVC: true
existingClaimName: nfs-pvc
eventsDir: "/" Then you do not need to override Alternatively you need to provide the configs to Spark HS so that it could access for instance HDFS compatible file system. For additional details please refer https://github.com/helm/charts/tree/master/stable/spark-history-server docs. |
Just create it in the underlying image ;) RUN chmod +x /opt/entrypoint.sh && \
chmod g+w $SPARK_HOME/work-dir && \
mkdir -p /tmp/spark-events
|
@maciekdude , then how will Spark containers write history logs to it? You need to have the shared directory to make it work. |
Executors do not write logs there even on shared FS like hdfs/s3. It's only driver, so if you have problem with the spawning jobs you can always disable evenlogin, get some share storage like s3 or just create this folder ;) |
If this is the way you are ok to go with then I have no arguments ;) |
I am running into a similar issue. I have created an NFS based PV and PVC and added the following corresponding settings for the historyserver charge:
Which configurations do I need to change for the livy chart?
Which other configurations do I need to change for the livy chart? Persistence configurations? |
Figured it out. I needed to configure the Kubernetes Volumes configuration properties (in the request for the livy batch job) for Spark driver and executors as mentioned here. |
how do you reslove it, can i see your submit spark job config? |
Hi,
we are strugling around with configuring the history server in livy using these env vars:
after we trigger a job, we see this error message in the driver container:
Exception in thread "main" java.io.FileNotFoundException: File file:/tmp/history-server does not exist
does anybody have a clue what we are doing wrong?
BR
Andreas
The text was updated successfully, but these errors were encountered: