Playground
Introduction
The playground is a complete Apache Gravitino Docker runtime environment with Apache Hive, HDFS, Trino, MySQL, PostgreSQL, Jupyter, and a Apache Gravitino server.
Depending on your network and computer, startup time may take 3-5 minutes. Once the playground environment has started, you can open http://localhost:8090 in a browser to access the Gravitino Web UI.
Prerequisites
Install Git (optional), Docker, Docker Compose.
System Resource Requirements
2 CPU cores, 8 GB RAM, 25 GB disk storage, MacOS or Linux OS (Verified Ubuntu22.04 Ubuntu24.04 AmazonLinux).
TCP Ports
The playground runs several services. The TCP ports used may clash with existing services you run, such as MySQL or Postgres.
| Docker container | Ports used |
|---|---|
| playground-gravitino | 8090 9001 |
| playground-hive | 3307 19000 19083 60070 |
| playground-mysql | 13306 |
| playground-postgresql | 15342 |
| playground-trino | 18080 |
| playground-jupyter | 18888 |
| playground-prometheus | 19090 |
| playground-grafana | 13000 |
Playground Usage
Curl Command to Launch the Playground
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/apache/gravitino-playground/HEAD/install.sh)"
Launch the Playground with Git
git clone git@github.com:apache/gravitino-playground.git
cd gravitino-playground
Start
./playground.sh start
Check Status
./playground.sh status
Stop Playground
./playground.sh stop
Experience Apache Gravitino with Trino SQL
Trino CLI in Docker Container
- Login to the Gravitino playground Trino Docker container using the following command:
docker exec -it playground-trino bash
- Open the Trino CLI in the container.
trino@container_id:/$ trino
Jupyter Notebook
-
Open the Jupyter Notebook in the browser at http://localhost:18888.
-
Open the
gravitino-trino-example.ipynbnotebook. -
Start the notebook and run the cells.
Spark Client
- Login to the Gravitino playground Spark Docker container using the following command:
docker exec -it playground-spark bash
- Open the Spark SQL client in the container.
spark@container_id:/$ cd /opt/spark && /bin/bash bin/spark-sql
Monitor Gravitino
-
Open the Grafana in the browser at http://localhost:13000.
-
In the navigation menu, click Dashboards -> Gravitino Playground.
-
Experiment with the default template.