Search code examples
scalaamazon-web-servicesapache-sparkemramazon-emr

Locate Scala installation for Spark


I'm using EMR and can launch spark-shell, but I want to run Scala REPL. Currently when I type scala command on shell it says:

-bash: scala: command not found

How to locate and run Scala REPL give that Spark is already installed and configured?


Solution

  • As already told by @ernest_k, EMR doesn't come with Scala installation.


    With that said, I used the steps mentioned in this blog to install Scala on 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