Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleNote!

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:

  1. Stop the KPI Management workflows.

  2. Stop the Spark cluster.

    Code Block
    $ stop.sh


  3. Stop the kpi-app and run:

    Code Block
    clean rm -fr $SPARK_APP_CHECKPOINT_DIR


  4. Remove data stored by Kafka, Zookeeper, and Spark.

    Note
    titleNote!

    Calculated KPIs for the current periods will be lost.


    Code Block
    languagetext
    themeEclipse
    $ rm -rf $MZ_HOME/storage/kafka/*
    $ rm -rf $MZ_HOME/storage/zookeeper/* 
    $ rm -rf <checkpoint directory>/*

    The default checkpoint directory is mz_kpiapp/data/spark-checkpoint-dir/<spark application name>.


  5. Start Kafka and Zookeeper.

    Code Block
    bin/zookeeper-server-start.sh config/zookeeper.properties & bin/kafka-server-start.sh config/server.properties


  6. Start Spark

    Code Block
    $ start_master_workers.sh


  7. Recreate the Kafka topics that are specified in the service configuration. For further information, see COPY OF 8344.3.2 Spark, kafka and zookeeper.

  8. Run submit.sh kpiapp to submit the Spark application(s). See 4.7.2 Submitting a Spark Application.

  9. Start the KPI Management workflows.
Scroll ignore
scroll-viewportfalse
scroll-pdftrue
scroll-officefalse
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse


Next: