Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Can't print log of spark and scala-logging #569

Open
livelxw opened this issue Dec 7, 2017 · 1 comment
Open

Can't print log of spark and scala-logging #569

livelxw opened this issue Dec 7, 2017 · 1 comment

Comments

@livelxw
Copy link

livelxw commented Dec 7, 2017

I can't see the logs of spark and scala-logging when submit my application to the k8s. However, I can see the logs if I use println() function. I tried to put a log4j properties file in resource folder but it didn't work. What's wrong?

@liyinan926
Copy link
Member

I'm assuming you used kubectl logs <driver pod name> to get logs of the driver. This only works if the logs are written to stdout/stderr. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#logging-at-the-node-level.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants