Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to build Spark Cluster

Shulou Source: shulou.com Published: 2022-05-31 19:11:04 10月03日 Update

This article mainly introduces "how to build a Spark cluster". In the daily operation, I believe many people have doubts about how to build a Spark cluster. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to build a Spark cluster"! Next, please follow the editor to study!

At this point, modify the source code of our "firstScalaApp" to the following:

At this point, we click the right button of "firstScalaApp" and select "Run Scala Console". The following prompt appears:

This is because we have not set the JDK path for Java. Click "OK" to enter the following view:

At this point we choose the leftmost "Project" option:

At this point, we select the "New" primary of "No SDK" as follows:

Click the "JDK" option:

Select the directory of the JDK we installed earlier:

Click "OK"

Click the confirm button:

The following view appears when you directly click on the code area:

We choose "Run 'firstScalaApp'" to run the program:

The first run of Scala will be slow, and the result is shown in the following figure:

"Hello Scala!" is printed successfully at this time. This string.

This indicates that the program runs successfully.

Step 5: if we want to use a cool black background, we can

File-> Settings-> Appearance-> Theme Select Darcula:

At this point, the study on "how to build a Spark cluster" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Select cluster learn run view succeed more program help practical slow next code content characters strings buttons articles methods source code Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology macOS MariaDB Shulou Tech Info Xiaomi