Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bluebrown/iot-stream-analytics

mqtt & kafka based stream processing playground
https://github.com/bluebrown/iot-stream-analytics

emqx iot kafka mqtt stream stream-analysis stream-analytics stream-processing

Last synced: 8 days ago
JSON representation

mqtt & kafka based stream processing playground

Awesome Lists containing this project

README

        

# IOT Playground

## Quick Start

First start the stack:

```bash
bin/install.sh # download connect plugins
docker compose up -d # boot the system
docker compose logs migration -f # observe the migration
```

After a few minutes, there should be data in the [kafka
bucket](http://localhost:9001/browser/kafka). You can authenticate with
`minio:minio123`.

Once data is available, you can use the [notebook](./notebook.ipynb), to
visualize it.

While you are waiting, you can inspect the system. For example try some of the
below commands.

## Useful Commands

### List Kafka Topics

```bash
docker compose exec kafka kafka-topics.sh \
--bootstrap-server kafka:9092 --list
```

### Consume Kafka Messages

```bash
docker compose exec kafka kafka-console-consumer.sh \
--bootstrap-server localhost:9092 --topic mqtt
```

### Inspect Message Structure

```bash
bin/ksql.sh -e "print 'device-parameter';"
```

### list Consumer Groups

```bash
docker compose exec kafka kafka-consumer-groups.sh \
--bootstrap-server localhost:9092 --all-groups --describe
```