GNU/Linux >> Linux Esercitazione >  >> Debian

Come installare Apache Spark su Debian 11 in modalità standalone

Come installare Apache Spark su Debian 11 in modalità standalone

Apache Spark è un framework open source per elaborazione cluster, usato per batch processing, streaming, machine learning e SQL.

Requisiti

  • Debian 11 Bullseye.
  • Utente non root con sudo.

Passaggio 1: aggiornare e installare Java

sudo apt update
sudo apt upgrade
sudo apt install default-jdk scala git
java --version

Passaggio 2: scaricare Spark

cd /tmp
wget https://dlcdn.apache.org/spark/spark-3.1.2/spark-3.1.2-bin-hadoop3.2.tgz
tar -xvzf spark-3.1.2-bin-hadoop3.2.tgz
sudo mv spark-3.1.2-bin-hadoop3.2/ /opt/spark

Aggiungere Spark al PATH:

nano ~/.bashrc
export SPARK_HOME=/opt/spark
export PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbin
source ~/.bashrc

Passaggio 3: avviare master

start-master.sh

Aprire https://IP-del-server:8080.

Passaggio 4: avviare worker

start-slave.sh spark://ubuntu1:7077

Passaggio 5: testare Spark Shell

spark-shell

Apache Spark è ora in esecuzione in modalità standalone.

Debian
  1. Installare Apache su Debian 9 e conoscerne la struttura di configurazione

  2. Installare Apache Cassandra su Debian 9

  3. Installare Apache Maven su Debian 10 e testarlo con un progetto di esempio

  4. Come installare Apache Maven su Debian 11

  5. Come installare Apache Cassandra su Debian 11 e Debian 10

Come Installare Apache Subversion su Debian 9

Come installare Apache Kafka su Debian 9

Come installare Apache Cassandra su Debian 10 Buster

Installare Apache Groovy su Debian 10 Buster

Come installare Apache Spark su Debian 10 Buster

Come installare Apache Spark su Debian 11 in modalità standalone