spark-operator icon indicating copy to clipboard operation
spark-operator copied to clipboard

Add support for arm64

Open holdenk opened this issue 4 years ago • 8 comments

Given the proliferation of arm based cloud instances and the nvidia arm platforms it would make sense to support running on arm64.

holdenk avatar May 15 '20 20:05 holdenk

I also have this issue. Thanks for raising it @holdenk .

lucaskjaero avatar Sep 20 '20 18:09 lucaskjaero

any news?

vl-shopback avatar Mar 17 '22 07:03 vl-shopback

any news?

ljy2010a avatar Mar 21 '22 02:03 ljy2010a

any news?

shechostr avatar Sep 23 '22 02:09 shechostr

Hey there, adding my 2 cents here, because I just got it working. It looks like this has no more support so I'll tell you the steps I did to get it working

#. Change this line from GOARCH=amd64 to GOARCH=arm64. #. Run docker buildx build --platform linux/arm64 --build-arg SPARK_IMAGE=apache/spark:v3.2.2 -t your-repo/your-image:v3.2.2-arm .

I'm currently testing that no problems arise from this, but it seems like these are the only change requirements. Then update the values of the helmchart to use this image and that should be it.

gonzalezzfelipe avatar Oct 20 '22 14:10 gonzalezzfelipe

@gonzalezzfelipe I've done so, and I'm getting the following error once container is started:

exec: "/usr/bin/entrypoint.sh": permission denied: unknown

mfidemraizer avatar May 30 '23 20:05 mfidemraizer

@mfidemraizer, I was just working on this trying to deploy spark operator on an AWS Graviton cluster. After successfully building the image and attempting to run the container on docker desktop, I got the same error as you: Screenshot 2023-06-22 at 8 24 43 AM To fix this issue, I added a new RUN line to my dockerfile that changes the permissions of the entrypoint.sh file and was able to initialize the container successfully:

COPY spark-operator/entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["/usr/bin/entrypoint.sh"]

ZachThill avatar Jun 22 '23 15:06 ZachThill

tested spark 3.5.0 on RPi microk8s today using docker image and can confirm it is working fine by following the instructions above.

manojmukkamala avatar Dec 25 '23 03:12 manojmukkamala