Hadoop to build a stand-alone installation Scala

Download: https: //www.scala-lang.org/download/

Scala version: scala-2.13.1.tar

1, download and install

tar -xvf scala-2.13.1.tar -C /opt/modules/

2, configure the environment variables

Review 
[Hadoop centos04 Scala @ - 2.13 . . 1 ] $ the sudo VI / etc / Profile 

Add 
Export SCALA_HOME = / opt / modules / scala- 2.13 . . 1 
Export the PATH = the PATH $: $ SCALA_HOME / bin 

Update 
[Hadoop @ centos04 Scala - 2.13 . 1 ] $ Source / etc / Profile

3, the test

 scale -version
[hadoop@centos04 scala-2.13.1]$ scala -version
Scala code runner version 2.13.1 -- Copyright 2002-2019, LAMP/EPFL and Lightbend, Inc.
[hadoop@centos04 scala-2.13.1]$ 

Instructions

https://www.runoob.com/scala/scala-install.html

 

 

 

End

 

Guess you like

Origin www.cnblogs.com/xuchen0117/p/12536043.html