-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.txt
59 lines (31 loc) · 1.56 KB
/
help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
## Generating access logs -> root
docker compose up -d
## Generating access logs -> logs-generator
python logs_generator.py -o LOG
## Kafka Consumer -> anywhere
/opt/homebrew/opt/kafka/bin/kafka-console-consumer --bootstrap-server localhost:9092 --topic success --from-beginning
## Kafka Consumer - container:kafka -> anywhere
docker exec --interactive --tty kafka kafka-console-consumer --bootstrap-server kafka:29092 --topic success --from-beginning
## Parser test -> faust
kcat -C -b localhost:9092 -t success -c 1 | jq '.message' | python access_log_parser.py | jq '.'
## Faust start -> faust
faust -A faust_app worker -l info
## Faust test -> anywhere
kcat -C -b localhost:9092 -t enriched-logs -c 1 | jq '.expandedMessage'
## Pinot add tables -> root
docker run -v $PWD/pinot-config:/config --network efps-stack_default apachepinot/pinot:latest AddTable -schemaFile /config/schema.json -tableConfigFile /config/table.json -controllerHost pinot-controller -exec
## Inspecting pinot:
http://localhost:9000
## Starting Dashboard -> anywhere
!! DEBUGGING:
IN superset CONTAINER RUN: pip install redis==4.5.4
Step 1: Add User & Initialize (Only Once):
docker exec -it superset superset fab create-admin --username admin --firstname Superset --lastname Admin --email [email protected] --password admin
docker exec -it superset superset db upgrade
docker exec -it superset superset init
Step 2:
Open http://localhost:8088 & register
Step 3:
Add apache Pinot Database at:
pinot+http://pinot-controller:8000/query/sql?controller=http://pinot-controller:9000/
ngrok