[Archive 1.0] 11. Operation Procedures - mata-elang-stable/MataElang-Platform GitHub Wiki
Start Procedure
When starting the Mata Elang system, start each component in the following order.
1. Snort
sudo systemctl start mataelang-snort
- NOTE : The systemd starts the service automatically.
2. Mosquitto
sudo systemctl start mosquitto
- NOTE : The systemd starts the service automatically.
3. Cassadra
sudo systemctl start cassandra
- NOTE : The systemd starts the service automatically.
4. Hadoop
start-dfs.sh
5. Kafka
cd ~/MataElang-Confluent
sudo docker-compose up -d
sudo docker-compose ps
If the connect-add service exits with code 7, run the following command until the exit code is 0.
sudo docker-compose start connect-add
6. Spark & KaspaCore
start-master.sh && start-slave.sh spark://localhost:7077
cd ~/KaspaCoreSystem
spark-submit --master spark://localhost:7077 --class me.mamotis.kaspacore.jobs.DataStream --total-executor-cores 4 --conf spark.submit.deployMode=cluster --conf spark.executor.cores=1 --conf spark.executor.memory=2g file:///usr/local/spark/jars/KaspaCore-assembly-0.1.jar
7. ELK Dashboard
cd ~/Dashboard
sudo docker-compose up -d elasticsearch
sudo docker-compose up -d logstash kibana
sudo docker-compose ps
8. Zabbix Server
sudo systemctl start mariadb
sudo systemctl start zabbix-server zabbix-agent apache2
- NOTE : The systemd starts the service automatically.
9. Zabbix Agent
sudo systemctl start zabbix-agent
- NOTE : The systemd starts the service automatically.
Stop Procedure
1. Snort
sudo systemctl stop mataelang-snort
2. Mosquitto
sudo systemctl stop mosquitto
3. Kafka
cd ~/MataElang-Confluent
sudo docker-compose down
4. Spark & KaspaCore
stop-slave.sh && stop-master.sh
5. Hadoop
stop-dfs.sh
6. Cassadra
sudo systemctl stop cassandra
7. ELK Dashboard
cd ~/Dashboard
sudo docker-compose down -v
8. Zabbix Agent
sudo systemctl stop zabbix-agent
9. Zabbix Server
sudo systemctl stop zabbix-server zabbix-agent apache2
sudo systemctl stop mariadb