kyuubi/docker/playground
Cheng Pan 76448490b2
[KYUUBI #4601] Bump Hadoop 3.3.5 for playground
### _Why are the changes needed?_

Hadoop 3.3.5 brings back ARM64 support.
https://www.mail-archive.com/common-devhadoop.apache.org/msg39131.html

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #4601 from pan3793/playground-hadoop.

Closes #4601

765def7a5 [Cheng Pan] Bump Hadoop 3.3.5 for playground

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2023-03-26 18:44:37 +08:00
..
conf [KYUUBI #4513] Bump Kyuubi 1.7.0 in Playground 2023-03-15 20:57:31 +08:00
image [KYUUBI #4089] [INFRA] Update release scripts and templates because of graduation 2023-01-05 01:55:20 +00:00
script [KYUUBI #3881] Upgrade playground components to latest versions 2022-12-02 10:51:41 +08:00
.env [KYUUBI #4601] Bump Hadoop 3.3.5 for playground 2023-03-26 18:44:37 +08:00
build-image.sh [KYUUBI #4215] Remove useless build-arg CLICKHOUSE_JDBC_VERSION 2023-02-01 20:37:36 +08:00
compose.yml [KYUUBI #4513] Bump Kyuubi 1.7.0 in Playground 2023-03-15 20:57:31 +08:00
README.md [KYUUBI #4312] [DOCS] Include **/README.md in markdown style check 2023-02-14 02:23:32 +08:00

Playground

For Users

Setup

  1. Install Docker and Docker Compose;
  2. Go to docker/playground, and use docker compose up -d to run compose services as daemon;

Play

  1. Connect using beeline

docker exec -it kyuubi /opt/kyuubi/bin/beeline -u 'jdbc:hive2://0.0.0.0:10009/tpcds/tiny';

  1. Connect using DBeaver

Add a Kyuubi datasource with

  • connection url jdbc:hive2://0.0.0.0:10009/tpcds/tiny
  • username: anonymous
  • password: <empty>
  1. Use built-in dataset

Kyuubi supply some built-in dataset, after Kyuubi started, you can run the following command to load the different datasets:

  • For loading TPC-DS tiny dataset to spark_catalog.tpcds_tiny, run docker exec -it kyuubi /opt/kyuubi/bin/beeline -u 'jdbc:hive2://0.0.0.0:10009/' -f /opt/load_data/load-dataset-tpcds-tiny.sql
  • For loading TPC-H tiny dataset to spark_catalog.tpch_tiny, run docker exec -it kyuubi /opt/kyuubi/bin/beeline -u 'jdbc:hive2://0.0.0.0:10009/' -f /opt/load_data/load-dataset-tpch-tiny.sql

Access Service

  • MinIO: http://localhost:9001
  • PostgreSQL localhost:5432 (username: postgres, password: postgres)
  • Spark UI: http://localhost:4040 (available after Spark application launching by Kyuubi, port may be 4041, 4042... if you launch more than one Spark applications)

Shutdown

  1. Stop compose services by docker compose down;

For Maintainers

Build

  1. Build images docker/playground/build-image.sh;
  2. Optional to use buildx to build and publish cross-platform images BUILDX=1 docker/playground/build-image.sh;