It is very simple to install Scala environment in Linux. If it is Ubuntu environment, it is even simpler. Just use 1. Installing JDK is a commonplace and not worth mentioning. 2. Install Scala, as follows: sudo apt-get install scala as follows: ubuntu@VM-0-15-ubuntu:~/taoge/scala$ scala -version Scala code runner version 2.11.6 -- Copyright 2002-2013, LAMP/EPFL ubuntu@VM-0-15-ubuntu:~/taoge/scala$ Of course, you can also use the Scala shell, as follows: ubuntu@VM-0-15-ubuntu:~/taoge/scala$ scala Welcome to Scala version 2.11.6 (OpenJDK 64-Bit Server VM, Java 1.8.0_151). Type in expressions to have them evaluated. Type :help for more information. scala> OK, let's write a Scala program to test it: ubuntu@VM-0-15-ubuntu:~/taoge/scala$ cat test.scala object HelloWorld { def main(args: Array[String]): Unit = { println("Hello, world!") } } ubuntu@VM-0-15-ubuntu:~/taoge/scala$ scala test.scala Hello, world! ubuntu@VM-0-15-ubuntu:~/taoge/scala$ Spark is written in Scala, so it is necessary to know some Scala. Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Example of implementing skeleton screen with Vue
>>: MySql 5.7.20 installation and configuration of data and my.ini files
Table of contents 1. Process Control 2. Sequentia...
This article example shares the specific code of ...
1. Use css sprites. The advantage is that the smal...
Sttty is a common command for changing and printi...
Drop-down menus are also very common in real life...
In the case of complete separation of the front-e...
When programmers do TypeScript/JavaScript develop...
This article mainly introduces: using Vue to impl...
1. Check the synchronization status of A and B da...
This article example shares the specific code of ...
Table of contents Getting Started with MySQL MySQ...
Recently, when using select query in a project, I...
Table of contents 1. Introduction: 2. The first i...
Configure Mysql master-slave service implementati...
MySQL 5.7.8 and later began to support a native J...