The default scala version on Ubuntu14.04.1LTS is 2.9, while the latest spark-1.3 requires the scala version 2.10.x of the lowest version, first, use apt-getremovescala to clean up old scala versions on the machine. Download http://www.scala-lang.org/download/2.10.5.htmlscala at this location ~ /. Bashrc
The default scala version on Ubuntu 14.04.1 LTS is 2.9, while the latest spark-1.3 requires the lowest version of scala 2.10.x, first, use apt-get remove scala to clear old scala versions on the machine. Download the http://www.scala-lang.org/download/2.10.5.html scala at this location,
After the installation is complete, decompress the package,
Last edited ~ /. Bashrc, set the following environment variables:
Export PATH =/home/zhangchao3/spark-evn/scala-2.10.5/bin: $ PATH
Export SCALA_HOME =/home/zhangchao3/spark-evn/scala-2.10.5
Finally, we can see that scala version is 2.10.
Www.linuxidc.com @ Hadoop01 :~ /Spark-evn/scala-2.10.5 $ scala-version
Scala code runner version 2.10.5 -- Copyright 2002-2013, LAMP/EPFL
Scala details: Click here
Scala: Click here
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-04/116455.htm