Run Apache Kylin standalone in Docker and explore OLAP cubes over Hive-style tables.
Apache Kylin pre-aggregates large datasets into cubes so BI queries return in sub-second time. This lab starts the standalone image, opens the Kylin web UI, and gives you Hive-style DDL and queries to understand the model, cube, and query flow.
docker compose up -d # needs about 8 GB RAM; first start takes 3-5 minutes
open http://localhost:7070/kylin # admin / KYLIN
Create a project, load the sample `learn_kylin` dataset, then build a model and cube.
Run the queries in examples/01_queries.sql from the Kylin web UI or a JDBC client.| Field | Value |
|---|---|
| Web UI | http://localhost:7070/kylin |
| User | admin |
| Password | KYLIN |
| JDBC URL | jdbc:kylin://localhost:7070/learn_kylin |
| Hadoop UI | http://localhost:8088 |
| HDFS UI | http://localhost:50070 |
| File | What it shows |
|---|---|
docker-compose.yml |
Engine, ports, and persistent volume. |
.github/workflows/compose-check.yml |
Validates the Compose file on every push. |
examples/01_queries.sql |
Hive-style DDL and analytical queries. |
examples/02_model_notes.md |
Checklist for the model and cube in the web UI. |
- Build a cube with
countryandordered_atdimensions and compare query latency before and after. - Add a derived dimension for the order month and rebuild the cube.
- Use the Kylin REST API to list cubes and trigger a build.
- Connect DBeaver with the Kylin JDBC driver and run the same aggregation.
- The standalone image bundles Hadoop, Hive, HBase, and Kylin. It needs roughly 8 GB of RAM and several minutes to start.
- Default credentials are
admin/KYLIN. Change them if the UI is reachable from other machines. - Kylin is an OLAP layer, not a general-purpose transactional database.
- The image is large; pull it before you need it if bandwidth is limited.
This lab publishes its ports on 127.0.0.1 only. To use it from another country, do not open the database port to the internet. Pick one:
- VPS + private tunnel: run the lab on a small Ubuntu VPS, keep the port closed, and connect through WireGuard or
ssh -L. - Managed service: use a managed free tier for this engine and point the same examples at its connection string.
- HTTP UI only: if the engine has a web UI, put it behind Caddy with TLS and basic auth.
The shared checklist, provider map, and commands are in REMOTE-ACCESS.md.
docker compose down -v-v also removes the named volume, so the next start is a clean slate.
Part of the database-labs collection: 26 database engines, one index.
MIT (c) 2026 Arya Fatthurahman. See LICENSE.