apt install openjdk-8-jdk
apt install maven
mvn clean test
- Start MySQL and create database
docker run -itd --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql:5.7
docker exec mysql mysql -u root -proot -e "CREATE DATABASE bmp CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';"
- Build jar
mvn clean package
java -jar ./bmp-catalog/target/bmp-catalog-1.0-SNAPSHOT.jar
Or debug entry point is Application.java
- start a HIVE datasource
docker-compose -f ./demo/hive_datasource/docker-compose.yml -p data up -d
- create HIVE table
docker exec data-hive-server-1 hive -f /tables.sql
-
Request demo.http with VS Code REST Client or JetBrains HTTP Client Editor
-
stop HIVE datasource
docker-compose -f ./demo/hive_datasource/docker-compose.yml -p data down