Skip to content
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

java.io.FileNotFoundException: /sys/fs/cgroup/cpuacct/cpuacct.usage (No such file or directory) #5

Open
cometta opened this issue May 16, 2024 · 5 comments

Comments

@cometta
Copy link

cometta commented May 16, 2024

my executor threw above error message . i check the folder in the docker container , does not have such file. Available files are


 cpu.idle               cpu.max.burst          cpuset.cpus            cpuset.cpus.partition  cpuset.mems.effective  cpu.uclamp.max         cpu.weight
cpu.max                cpu.pressure           cpuset.cpus.effective  cpuset.mems            cpu.stat               cpu.uclamp.min         cpu.weight.nice

can advice?

i'm using docker image apache/spark:3.5.1

@LucaCanali
Copy link
Member

I cannot reproduce your error, maybe you can give more details about the configuration that throws this error.
I have checked apache/spark:3.5.1 and it does have /sys/fs/cgroup/cpuacct/cpuacct.usage

@cometta
Copy link
Author

cometta commented May 17, 2024

@LucaCanali does the issue caused by apache/spark:3.5.1 does not have that file? may i know when run your docker image in kubernetes, do you need to run on priviledge mode?

my config

    "spark.jars": "https://repo1.maven.org/maven2/ch/cern/sparkmeasure/spark-measure_2.12/0.24/spark-measure_2.12-0.24.jar"

     "spark.jars.packages": "ch.cern.sparkmeasure:spark-measure_2.12:0.24,ch.cern.sparkmeasure:spark-plugins_2.12:0.3",
    "spark.plugins": "ch.cern.HDFSMetrics,ch.cern.CgroupMetrics,ch.cern.CloudFSMetrics",
    "spark.cernSparkPlugin.cloudFsName": "s3a",
    "spark.executor.metrics.fileSystemSchemes": "file"

@cometta
Copy link
Author

cometta commented May 17, 2024

may i know which version of k8s are you using. might be related. see this kubernetes/kubernetes#119669 (comment)

@LucaCanali
Copy link
Member

I have been testing this with Kubernetes up to v 1.25.3 so far + using cgroups v1.

@cometta
Copy link
Author

cometta commented May 22, 2024

i think only happen in cgroups v2

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

No branches or pull requests

2 participants