...
Note | ||
---|---|---|
| ||
As prerequisite, the scripts must be prepared according to COPY OF 8344.2 Preparing and Creating Scripts for KPI Management |
The following steps are required to remove all existing runtime data:
- Stop the KPI Management workflows.
Stop the Spark cluster.
Code Block $ stop.sh
Stop the
kpi-app
and run:Code Block clean rm -fr $SPARK_APP_CHECKPOINT_DIR
Remove data stored by Kafka, Zookeeper, and Spark.
Note title Note! Calculated KPIs for the current periods will be lost.
Code Block language text theme Eclipse $ rm -rf $MZ_HOME/storage/kafka/* $ rm -rf $MZ_HOME/storage/zookeeper/* $ rm -rf <checkpoint directory>/*
The default checkpoint directory is mz_kpi
app/data/spark-checkpoint-dir/<spark application name>
.Start Kafka and Zookeeper.
Code Block bin/zookeeper-server-start.sh config/zookeeper.properties & bin/kafka-server-start.sh config/server.properties
Start Spark
Code Block $ start_master_workers.sh
- Recreate the Kafka topics that are specified in the service configuration. For further information, see COPY OF 8344.3.2 Spark, kafka and zookeeper.
- Run
submit.sh kpiapp
to submit the Spark application(s). See 4.7.2 Submitting a Spark Application. - Start the KPI Management workflows.
Scroll ignore | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||