找到Spark的Scala安装

时间:2018-03-29 06:09:23

标签: scala amazon-web-services apache-spark emr amazon-emr

我使用EMR并可以启动spark-shell,但我希望运行Scala REPL。目前,当我在scala上输入shell命令时,它会显示:

-bash: scala: command not found

如何找到并运行Scala REPL已经安装并配置了Spark

1 个答案:

答案 0 :(得分:1)

已经told by @ernest_kEMR还没有安装Scala


话虽如此,我使用this blog中提到的步骤在Scala上安装EMR

# perform customary yum update
sudo yum update

# download Scala installer RPM
wget https://downloads.lightbend.com/scala/2.13.0-M5/scala-2.13.0-M5.rpm

# install Scala RPM
sudo yum install scala-2.12.5.rpm