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

PR_SET_CHILD_SUBREAPER is unavailable on this platform #1735

Open
hongbo-miao opened this issue Apr 24, 2023 · 12 comments
Open

PR_SET_CHILD_SUBREAPER is unavailable on this platform #1735

hongbo-miao opened this issue Apr 24, 2023 · 12 comments

Comments

@hongbo-miao
Copy link

hongbo-miao commented Apr 24, 2023

I have a local k3s Kubernetes created by Rancher Desktop on MacBook Pro with M1 chip.

I try to install spark-on-k8s-operator by

helm repo add spark-operator https://googlecloudplatform.github.io/spark-on-k8s-operator
helm install spark spark-operator/spark-operator --namespace spark-operator --create-namespace

However, I got the error for the pod spark-spark-operator-6964986646-5vctk:

++ id -u
+ myuid=0
++ id -g
+ mygid=0
+ set +e
++ getent passwd 0
+ uidentry=root:x:0:0:root:/root:/bin/bash
+ set -e
+ echo 0
+ echo 0
+ echo root:x:0:0:root:/root:/bin/bash
0
0
root:x:0:0:root:/root:/bin/bash
+ [[ -z root:x:0:0:root:/root:/bin/bash ]]
+ exec /usr/bin/tini -s -- /usr/bin/spark-operator -v=2 -logtostderr -namespace= -enable-ui-service=true -ingress-url-format= -controller-threads=10 -resync-interval=30 -enable-batch-scheduler=false -label-selector-filter= -enable-metrics=true -metrics-labels=app_type -metrics-port=10254 -metrics-endpoint=/metrics -metrics-prefix= -enable-resource-quota-enforcement=false
[FATAL tini (1)] PR_SET_CHILD_SUBREAPER is unavailable on this platform. Are you using Linux >= 3.4?

Any idea? Thanks! 😃

@sshahar1
Copy link

I'm having the same issue on colima

@nielspardon
Copy link

This comment explains the root cause of the issue: docker/for-mac#6620 (comment)

It seems that this is triggered by the Spark container image using tini -s in the entrypoint.sh script, e.g. for 3.5.0:
https://github.com/apache/spark-docker/blob/master/3.5.0/scala2.12-java11-ubuntu/entrypoint.sh

@sutodi
Copy link

sutodi commented Apr 4, 2024

How can we solve this and get the setup in local. It is failing with latest rancher desktop

@flowy0
Copy link

flowy0 commented Apr 5, 2024

If you use colima with rosetta emulation or with an amd profile, it should resolve. I previously had this error. See details at Rosetta 2 emulation

#AMD profile
colima start --profile amd --arch amd --cpu 4 --memory 8 --disk 80

# or rosetta emulation
colima start --arch aarch64 --vm-type=vz --vz-rosetta --cpu 4 --memory 8 --disk 80

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link

github-actions bot commented Sep 3, 2024

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2024
@stefanbethke
Copy link

/reopen I believe this is still an issue. ghcr.io/googlecloudplatform/spark-operator:v1beta2-1.3.8-3.1.1 is available only as an amd64 image, necessitating emulation on non-amd64 systems. And it seems QEMU 7.4 does not properly emulate a system call or similar.

Is there any reason the project does not publish arm64 images?

@stefanbethke
Copy link

/reopen

Copy link
Contributor

@stefanbethke: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Contributor

@hongbo-miao: Reopened this issue.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@ChenYi015
Copy link
Contributor

/lifecycle frozen

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

No branches or pull requests

7 participants