安装scala
上传scala安装包
root@hadoop1 usr]# mkdir scala
root@hadoop1 scala]# scala-2.10.5.tgz
解压
[root@hadoop1 scala]# tar -zxvf scala-2.10.5.tgz
配置scala环境变量
[root@hadoop1 scala]#vi /etc/profile
[root@hadoop1 hive]# source /etc/profile
安装spark
上传scala安装包
[root@hadoop1 usr]# mkdir spark
[root@hadoop1 spark]# spark-2.1.1-bin-hadoop2.7.tgz
解压
[root@hadoop1 spark]# tar -zxvf spark-2.1.1-bin-hadoop2.7.tgz
配置scala环境变量
[root@hadoop1 spark]# vi /etc/profile
[root@hadoop1 spark]# source /etc/profile
启动spark
[root@hadoop1 spark]# spark-shell
退出spark
scala>:q