<commit_before># Prepare

mvn clean install -f event-source/pom.xml
mvn clean install -f aggregator/pom.xml
docker-compose up --build

# Console

cat mysql-source.json | http POST http://localhost:8083/connectors/
cat es-sink.json | http POST http://localhost:8083/connectors/

docker-compose exec kafka /kafka/bin/kafka-console-consumer.sh \
    --bootstrap-server kafka:9092 \
	--property print.key=true \
	--topic dbserver1.inventory.orders

docker-compose exec kafka /kafka/bin/kafka-console-consumer.sh \
    --bootstrap-server kafka:9092 \
	--from-beginning \
	--property print.key=true \
	--topic dbserver1.inventory.categories

docker-compose exec kafka /kafka/bin/kafka-console-consumer.sh \
    --bootstrap-server kafka:9092 \
	--from-beginning \
	--property print.key=true \
	--topic sales_per_category

docker run --tty \
  --network kstreams-live-update_default \
  confluentinc/cp-kafkacat \
  kafkacat -b kafka:9092 -C -o end \
  -t dbserver1.inventory.orders | jq .

# Misc.

docker-compose exec kafka /kafka/bin/kafka-topics.sh --zookeeper zookeeper:2181 --list

# Browser<commit_msg>[kstreams] Local demo update<commit_after># Prepare

mvn clean install -f event-source/pom.xml
mvn clean install -f aggregator/pom.xml
docker-compose up --build

# Console

cat mysql-source.json | http POST http://localhost:8083/connectors/
cat es-sink.json | http POST http://localhost:8083/connectors/

docker-compose exec kafka /kafka/bin/kafka-console-consumer.sh \
    --bootstrap-server kafka:9092 \
	--property print.key=true \
	--topic dbserver1.inventory.orders

docker-compose exec kafka /kafka/bin/kafka-console-consumer.sh \
    --bootstrap-server kafka:9092 \
	--from-beginning \
	--property print.key=true \
	--topic dbserver1.inventory.categories

docker-compose exec kafka /kafka/bin/kafka-console-consumer.sh \
    --bootstrap-server kafka:9092 \
	--from-beginning \
	--property print.key=true \
	--topic sales_per_category

http "http://localhost:9200/orders/_search?pretty"

## Kafkacat

docker run --tty \
  --network kstreams-live-update_default \
  confluentinc/cp-kafkacat \
  kafkacat -b kafka:9092 -C -o end \
  -t dbserver1.inventory.orders | jq .payload

docker run --tty \
  --network kstreams-live-update_default \
  confluentinc/cp-kafkacat \
  kafkacat -b kafka:9092 -C -o beginning \
  -t dbserver1.inventory.categories | jq .payload

docker run --tty \
    --network kstreams-live-update_default \
    confluentinc/cp-kafkacat \
    kafkacat -b kafka:9092 -C -o beginning \
    -t sales_per_category -K " --- "

# Misc.

docker-compose exec kafka /kafka/bin/kafka-topics.sh --zookeeper zookeeper:2181 --list

# Browser
{'fraction_non_alphanumeric': 0.12707390648567118, 'fraction_numerical': 0.02828054298642534, 'mean_word_length': 3.1453125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4598257', 'n_tokens_mistral': 1034, 'n_tokens_neox': 971, 'n_words': 201}