Hadoop/spark安装实战(系列篇5) scala安装
1/scala 解压缩
[root@localhost setup_tools]# tar -zxvf scala-2.10.4.tgz
2将文件移到/usr/local
mv scala-2.10.4 /usr/local
3配置环境变量
[root@localhost local]# vi /etc/profile
export SCALA_HOME =/usr/local/scala-2.10.4
生效
[root@localhost setup_tools]# source /etc/profile
4、检验
[root@localhost setup_tools]# scala
Welcome to Scala version 2.10.4 (Java HotSpot(TM) Client VM, Java
1.7.0_79).
Type in expressions to have them evaluated.
Type :help for more information.
scala> 1*2
res0: Int = 2
scala>
scala 安装 OK