Spark framework: build Scala development environment under win10 system

Time:2019-11-8

I. Scala environment foundation

Scala wraps Java related classes and interfaces, so it depends on the JVM environment.

JDK 1.8 Scala dependency
Scala 2.11 installation version
Idea 2017.3 development tools

2. Configure Scala decompression version

1) note that there is no space or Chinese in the path

Spark framework: build Scala development environment under win10 system

2) configure environment variables

Spark framework: build Scala development environment under win10 system

Add to path directory

%SCALA_HOME%\bin

3) check whether it is installed

Spark framework: build Scala development environment under win10 system

Configuration is successful, that’s right.

III. configure idea development

1) plug in installation is just a little bit

Spark framework: build Scala development environment under win10 system

2) two new Maven projects
Create the scala folder in the main directory of scala base Hello, as shown below.

Spark framework: build Scala development environment under win10 system

3) add Scala framework

Spark framework: build Scala development environment under win10 system

4) create Scala code file

Spark framework: build Scala development environment under win10 system

Spark framework: build Scala development environment under win10 system

5) witness Hello Scala together

Spark framework: build Scala development environment under win10 system

Does this code look a little different?

IV. write at the end

It’s said that everything is difficult at the beginning. Now it’s a perfect beginning. The rest must be simple.

Spark framework: build Scala development environment under win10 system

Recommended Today

Configure Apache to support PHP in the Apache main configuration file httpd.conf Include custom profile in

In Apache’s main configuration file / conf/ http.conf Add at the bottom Include “D:workspace_phpapache-php.conf” The file path can be any In D: workspace_ Create under PHP file apache- php.conf file Its specific content is [html] view plain copy PHP-Module setup LoadFile “D:/xampp/php/php5ts.dll” LoadModule php5_module “D:/xampp/php/php5apache2_2.dll” <FilesMatch “.php$”> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch “.phps$”> SetHandler application/x-httpd-php-source </FilesMatch> […]