Also available as:

Execute the Flow

  1. Install the elasticsearch head plugin by executing: /usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head.

  2. Stop all other parser topologies via monit.

  3. Create the mad Kafka topic by executing: /usr/hdp/current/kafka-broker/bin/ --zookeeper node1:2181 --create --topic mad --partitions 1 --replication-factor 1.

  4. Push the modified configs by executing: $METRON_HOME/bin/ --mode PUSH -z node1:2181 -i $METRON_HOME/config/zookeeper/.

  5. Start the profiler by executing: $METRON_HOME/bin/

  6. Start the parser topology by executing: $METRON_HOME/bin/ -k node1:6667 -z node1:2181 -s mad.

  7. Ensure that the enrichment and indexing topologies are started. If not, then start those via monit or by hand.

  8. Generate data into kafka by executing the following for at least 10 minutes: ~/ 0 1 1 | /usr/hdp/current/kafka-broker/bin/ --broker-list node1:6667 --topic mad. Note: If you chose to use the t-distribution script above, you would adjust the parameters of the script accordingly.

  9. Stop the above with ctrl-c and send an obvious outlier into kafka: echo "1000" | /usr/hdp/current/kafka-broker/bin/ --broker-list node1:6667 --topic mad.

You should be able to find the outlier via the elasticsearch head plugin by searching for the messages where is_alert is true.