https://stackoverflow.com/questions/66464412/install-scala-to-apple-silicon
https://sdkman.io
https://stackoverflow.com/questions/64788005/java-jdk-for-apple-m1-chip
You can install Java JDK using sdkman (see sdkman install):
vim .sdkman/etc/config
set sdkman_rosetta2_compatbile=false
###### Instal packages
sdk install java 8.0.302-zulusdk install
sbt
sbt compile
sdk install spark
sdk install spark
sdk current
Using:
java: 8.0.302-zulu
sbt: 1.5.5
scala: 2.13.6
spark: 3.1.2
https://springframework.guru/using-sdkman-to-manage-java-versions/
###### Test Spark
~/.sdkman/candidates/spark/3.1.2/bin/run-example SparkPi 10
No comments:
Post a Comment