
Apache Spark is an open-source, general-purpose, multi-language analytics engine for large-scale data processing. It works on both single and multiple nodes by utilizing the RAM in clusters to perform fast data queries on large amounts of data. It offers batch data processing and real-time streaming, with support of high-level APIs in languages such as Python, SQL, Scala, Java or R. The framework offers in-memory technologies that allow it to store queries and data directly in the main memory of the cluster nodes.
This article explains how to install Apache Spark on Ubuntu 20.04 server.
Update system packages.
Install Java.
Verify Java installation.
Install required packages.
Download Apache Spark. Find the latest release from the downloads page.
Extract the Spark tarball.
Create an installation directory /opt/spark.
Move the extracted files to the installation directory.
Change the permission of the directory.
Edit the bashrc configuration file to add Apache Spark installation directory to the system path.
Add the code below at the end of the file, save and exit the file:
Save the changes to take effect.
Start the standalone master server.
Find your server hostname from the dashboard by visiting http://ServerIPaddress:8080. Under the URL value. It might look like this:
Start the Apache Spark worker process. Change spark://ubuntu:7077 with your server hostname.
Go to your browser address bar to access the web interface and type in http://ServerIPaddress:8080 to access the web install wizard. For example:
You have installed Apache Spark on your server. You can now access the main dashboard begin managing your clusters.
For more information about Apache Spark, please see the official documentation.
0 Comments
Be the first to comment and share your perspective with the community.