Scala
Scala is a programming language, which support object oriented and functional programming paradigm. This language is gaining popularity as it is becoming good choice for scalable distributed systems.
There are many ways the language can be configured on CentOS machine.
1. Install SBT
Refer to the article Spark Development using SBT in IntelliJ
2. Download Scala
Download the tar file and set the environment variables as shown below
[code language="java"]
#Download the tar file
wget http://downloads.lightbend.com/scala/2.12.1/scala-2.12.1.tgz
....
HTTP request sent, awaiting response... 200 OK
Length: 19700349 (19M) [application/octet-stream]
Saving to: ‘scala-2.12.1.tgz’
100%[======================================>] 19,700,349 214KB/s in 57s
2016-12-13 21:42:31 (336 KB/s) - ‘scala-2.12.1.tgz’ saved [19700349/19700349]
#Extract the file
tar xvf scala-2.12.1.tgz
.....
scala-2.12.1/doc/tools/css/style.css
scala-2.12.1/doc/tools/scalap.html
scala-2.12.1/doc/tools/scaladoc.html
scala-2.12.1/doc/License.rtf
scala-2.12.1/doc/licenses/
scala-2.12.1/doc/licenses/bsd_asm.txt
scala-2.12.1/doc/licenses/mit_jquery.txt
scala-2.12.1/doc/licenses/bsd_jline.txt
scala-2.12.1/doc/licenses/mit_sizzle.txt
scala-2.12.1/doc/licenses/mit_tools.tooltip.txt
scala-2.12.1/doc/licenses/apache_jansi.txt
scala-2.12.1/doc/LICENSE.md
scala-2.12.1/doc/README
#Move folder to /usr/local
sudo mv scala-2.12.1 /usr/local/scala
#Edit .bashrc file add the below lines
export SCALA_HOME=/usr/local/scala
export PATH=$PATH:$SCALA_HOME/bin
#Source .bashrc file
source ~/.bashrc
#Verify if installed properly
scala -version
Scala code runner version 2.12.1 -- Copyright 2002-2016, LAMP/EPFL and Lightbend, Inc.
[/code]
3. Install one of the Scala IDE plugin
Download one Scala IDE plugin, I have used Eclipse or IntelliJ. Both works great.
Hope this tutorial help you in installation. Please let me know if you face ran into any problems.
Keep Reading and Learning...
Happy Coding!!!
Scala is a programming language, which support object oriented and functional programming paradigm. This language is gaining popularity as it is becoming good choice for scalable distributed systems.
There are many ways the language can be configured on CentOS machine.
1. Install SBT
Refer to the article Spark Development using SBT in IntelliJ
2. Download Scala
Download the tar file and set the environment variables as shown below
[code language="java"]
#Download the tar file
wget http://downloads.lightbend.com/scala/2.12.1/scala-2.12.1.tgz
....
HTTP request sent, awaiting response... 200 OK
Length: 19700349 (19M) [application/octet-stream]
Saving to: ‘scala-2.12.1.tgz’
100%[======================================>] 19,700,349 214KB/s in 57s
2016-12-13 21:42:31 (336 KB/s) - ‘scala-2.12.1.tgz’ saved [19700349/19700349]
#Extract the file
tar xvf scala-2.12.1.tgz
.....
scala-2.12.1/doc/tools/css/style.css
scala-2.12.1/doc/tools/scalap.html
scala-2.12.1/doc/tools/scaladoc.html
scala-2.12.1/doc/License.rtf
scala-2.12.1/doc/licenses/
scala-2.12.1/doc/licenses/bsd_asm.txt
scala-2.12.1/doc/licenses/mit_jquery.txt
scala-2.12.1/doc/licenses/bsd_jline.txt
scala-2.12.1/doc/licenses/mit_sizzle.txt
scala-2.12.1/doc/licenses/mit_tools.tooltip.txt
scala-2.12.1/doc/licenses/apache_jansi.txt
scala-2.12.1/doc/LICENSE.md
scala-2.12.1/doc/README
#Move folder to /usr/local
sudo mv scala-2.12.1 /usr/local/scala
#Edit .bashrc file add the below lines
export SCALA_HOME=/usr/local/scala
export PATH=$PATH:$SCALA_HOME/bin
#Source .bashrc file
source ~/.bashrc
#Verify if installed properly
scala -version
Scala code runner version 2.12.1 -- Copyright 2002-2016, LAMP/EPFL and Lightbend, Inc.
[/code]
3. Install one of the Scala IDE plugin
Download one Scala IDE plugin, I have used Eclipse or IntelliJ. Both works great.
Hope this tutorial help you in installation. Please let me know if you face ran into any problems.
Keep Reading and Learning...
Happy Coding!!!