Open jasonlai1218 opened 9 months ago
🤖
The issue you're experiencing might be due to the fact that the log configuration in your task_logs.yaml
file is only set up for general Kubernetes pods, not specifically for Spark Driver pods.
The kubernetes-template-uri
you've provided is a general template that works for most Kubernetes pods. However, Spark Driver pods might have a different log structure or location, which is why they might not be showing up.
To resolve this issue, you would need to find out the correct log structure or location for Spark Driver pods and adjust the kubernetes-template-uri
accordingly.
For more details, you can refer to the Flyte codebase, specifically the getEventInfoForSpark
function in the flyteplugins/go/tasks/plugins/k8s/spark/spark.go file. This function initializes different log plugins based on the configuration and fetches the logs for the Spark Driver pod.
Please note that this is a general suggestion and the exact solution might vary depending on your specific setup and configuration. If you're still having trouble, I would recommend reaching out to the Spark community for more specific guidance.
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
Describe the bug
I encountered the problem that the Spark Driver pod log cannot be displayed on the console. General Python Task pod log can work, but the Spark Task cannot.
http://localhost:30082/#!/log/flytesnacks-development/....../pod?namespace=flytesnacks-development
Expected behavior
I manually adjusted the URL and found the correct result
Additional context to reproduce
My Helm values yaml file
Screenshots
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?