Installazione
Installa Apache Spark su Ubuntu 18.04
Esegui il comando per scaricare Apache Spark.
$ wget https://archive.apache.org/dist/spark/spark-3.1.1/spark-3.1.1-bin-hadoop3.2.tgz
Estrarre il file TAR utilizzando il comando sotto.
$ tar -zxf spark-3.1.1-bin-hadoop3.2.tgz
Spostare la directory estratta.
$ sudo mv spark-3.1.1-bin-hadoop3.2 /opt/spark
Apri il file .Bashrc e aggiungi le righe sotto.
export SPARK_HOME=/opt/spark
export PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbin
Attiva l’ambiente con il seguente comando.
$ source ~/.bashrc
Avviare Spark Master Server.
$ start-master.sh
Apri il browser e immettere http: // server-ip: 8080 per accedere all’interfaccia Web.