Welcome to Scala 2.12.18 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_161). Type in expressions for evaluation. Or try :help. scala> val a=1 a: Int = 1 scala> val b=2 b: Int = 2 scala> a+b res0: Int = 3
按CTRL+c退出scala界面
Spark安装
解压spark,并重命名
1 2
tar -zxvf /opt/software/spark-3.1.1-bin-hadoop3.2.tgz -C /opt/module/ mv spark-3.1.1-bin-hadoop3.2/ spark
2024-04-07 08:55:33,209 INFO cluster.YarnScheduler: Killing all running tasks in stage 0: Stage finished 2024-04-07 08:55:33,211 INFO scheduler.DAGScheduler: Job 0 finished: reduce at SparkPi.scala:38, took 1.251154 s Pi is roughly 3.1335756678783393 2024-04-07 08:55:33,232 INFO server.AbstractConnector: Stopped Spark@57a4d5ee{HTTP/1.1, (http/1.1)}{0.0.0.0:4040}