Spark: Difference between revisions
Jump to navigation
Jump to search
Line 63: | Line 63: | ||
* [https://dev.to/kirekov/apache-spark-hive-and-spring-boot-testing-guide-mdp Spark » Apache Spark, Hive & Spring Boot] | * [https://dev.to/kirekov/apache-spark-hive-and-spring-boot-testing-guide-mdp Spark » Apache Spark, Hive & Spring Boot] | ||
* [https://github.com/SimonHarmonicMinor/apache-spark-integration-testing-example Spark » Integration Testing Example] | * [https://github.com/SimonHarmonicMinor/apache-spark-integration-testing-example Spark » Integration Testing Example] | ||
* [https://github.com/juju-solutions/layer-apache-spark/blob/master/templates/master-systemd.conf Spark » Install Master as a Daemon] | |||
* [https://stackoverflow.com/questions/59249135/ Spark » Install Slave as a Daemon] | |||
* [https://stackoverflow.com/questions/40166056/ Spark » As a Linux Service] | |||
* [[VS Code on iPad Pro]] | * [[VS Code on iPad Pro]] | ||
* [[Machine Learning]] | * [[Machine Learning]] | ||
* [https://hive.apache.org/ Apache Hive] | * [https://hive.apache.org/ Apache Hive] | ||
* [https://aerospike.com/ Aerospike] | * [https://aerospike.com/ Aerospike] | ||
| valign="top" | | |||
* [[Keycloak]] | * [[Keycloak]] | ||
* [[GraphQL]] | * [[GraphQL]] | ||
* [[Grafana]] | * [[Grafana]] | ||
|- | |- |
Revision as of 05:14, 25 September 2022
Spark Master
sudo tee -a /etc/systemd/system/spark-master.service >/dev/null <<EOF
[Unit]
Description=Apache Spark Master
Documentation=https://spark.apache.org/docs/3.3.0
Wants=network-online.target
After=network-online.target
After=systemd-user-sessions.service
[Service]
User=spark
Type=forking
EnvironmentFile=${SPARK_HOME}/etc/.env
ExecStart=${SPARK_HOME}/sbin/start-master.sh
ExecStop=${SPARK_HOME}/sbin/stop-master.sh
[Install]
WantedBy=multi-user.target
EOF
Slave Daemon
sudo tee -a /etc/systemd/system/spark-slave.service >/dev/null <<EOF
[Unit]
Description=Apache Spark Slave
Documentation=https://spark.apache.org/docs/3.3.0
Wants=network-online.target
After=network-online.target
[Service]
User=spark
Type=forking
EnvironmentFile=${SPARK_HOME}/etc/.env
WorkingDirectory=${SPARK_HOME}/sbin
ExecStart=${SPARK_HOME}/sbin/start-slave.sh spark://10.20.22.10:7077
ExecStop=${SPARK_HOME}/sbin/stop-slave.sh
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target
EOF
References
| ||