forked from confluentinc/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEVX-1438: examples/clickstream (local): deprecate local version in f…
…avor of Docker version (confluentinc#472)
- Loading branch information
Showing
5 changed files
with
16 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
 | ||
|
||
## Overview | ||
# Overview | ||
|
||
This demo shows how KSQL can be used to process a stream of click data, aggregate and filter it, and join to information about the users. Visualisation of the results is provided by Grafana, on top of data streamed to Elasticsearch. | ||
This demo shows how KSQL can be used to process a stream of click data, aggregate and filter it, and join to information about the users. | ||
Visualisation of the results is provided by Grafana, on top of data streamed to Elasticsearch. | ||
|
||
You can [run it using Docker](https://docs.confluent.io/current/ksql/docs/tutorials/clickstream-docker.html?utm_source=github&utm_medium=demo&utm_campaign=ch.examples_type.community_content.clickstream), or with a local install of Confluent Platform and following the instructions below. | ||
# Documentation | ||
|
||
## Prerequisites | ||
|
||
* [Common demo prerequisites](https://github.com/confluentinc/examples#prerequisites) | ||
* [Confluent Platform 5.4](https://www.confluent.io/download/?utm_source=github&utm_medium=demo&utm_campaign=ch.examples_type.community_content.clickstream) | ||
* `jq` installed on your machine | ||
* [Elasticsearch 5.6.5](https://www.elastic.co/downloads/past-releases/elasticsearch-5-6-5) to export data from Kafka | ||
* If you do not want to use Elasticsearch, comment out ``check_running_elasticsearch`` in the ``start.sh`` script | ||
* Grafana 5.0.3 to visualize data | ||
* If you do not want to use Grafana, comment out ``check_running_grafana`` in the ``start.sh`` script | ||
|
||
Note: this demo has been validated only on macOS. | ||
|
||
## What Should I see? | ||
|
||
After you run `./start.sh`: | ||
|
||
* If you are running Confluent Platform, open your browser and navigate to the Control Center web interface Monitoring -> Data streams tab at http://localhost:9021/monitoring/streams to see throughput and latency performance of the KSQL queries | ||
* If you are running Confluent Platform, use Control Center to view and create KSQL queries. Otherwise, run the KSQL CLI `ksql http://localhost:8088`. | ||
* Navigate to the Grafana dashboard at http://localhost:3000/dashboard/db/click-stream-analysis. Login with user ID `admin` and password `admin`. | ||
|
||
 | ||
You can find the documentation for running this demo and its accompanying tutorial at [https://docs.confluent.io/current/ksql/docs/tutorials/clickstream-docker.html](https://docs.confluent.io/current/ksql/docs/tutorials/clickstream-docker.html?utm_source=github&utm_medium=demo&utm_campaign=ch.examples_type.community_content.clickstream) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
#!/bin/bash | ||
|
||
# Source library | ||
. ../utils/helper.sh | ||
|
||
check_env || exit 1 | ||
|
||
jps | grep DataGen | awk '{print $1;}' | xargs kill -9 | ||
confluent local destroy | ||
|
||
# jps | grep Elasticsearch | awk '{print $1;}' | xargs kill -9 | ||
docker-compose down --volumes |