In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.