diff --git a/pom.xml b/pom.xml
index bda7861..28cceb6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,7 +53,7 @@
2.15.3-18.0
32.1.3-jre-18.0
1.18.30
- 1.0.7
+ 1.0.12
3.5.4
5.0.1
8.2.0
diff --git a/tools/docker/hive/mysql-connector-j-8.2.0.jar b/tools/docker/hive/mysql-connector-j-8.2.0.jar
new file mode 100644
index 0000000..96fae38
Binary files /dev/null and b/tools/docker/hive/mysql-connector-j-8.2.0.jar differ
diff --git a/tools/docker/local/docker-compose.yml b/tools/docker/local/docker-compose.yml
index 771a8c6..b4ca33b 100644
--- a/tools/docker/local/docker-compose.yml
+++ b/tools/docker/local/docker-compose.yml
@@ -28,13 +28,37 @@ services:
- MYSQL_AUTHENTICATION_PLUGIN=mysql_native_password
- MYSQL_DATABASE=sakura
ports:
- - 3380:3306
+ - 3306:3306
+ healthcheck:
+ test: [ "CMD", "mysqladmin", "-u$$MYSQL_ROOT_USER", "-p$$MYSQL_ROOT_PASSWORD", "ping", "-h", "localhost" ]
+ interval: 3s
+ timeout: 1s
+ retries: 16
+ start_period: 30s
volumes:
- ../mysql/my_custom.cnf:/opt/bitnami/mysql/conf/my_custom.cnf
- ../mysql/init.d:/docker-entrypoint-initdb.d
networks:
- sakura
+ metastore:
+ image: apache/hive:3.1.3
+ container_name: metastore
+ depends_on:
+ mysql:
+ condition: service_healthy
+ environment:
+ - SERVICE_NAME=metastore
+ - DB_DRIVER=mysql
+ - SERVICE_OPTS=-Djavax.jdo.option.ConnectionDriverName=com.mysql.cj.jdbc.Driver -Djavax.jdo.option.ConnectionURL=jdbc:mysql://mysql:3306/hive_metastore?createDatabaseIfNotExist=true&useSSL=false -Djavax.jdo.option.ConnectionUserName=root -Djavax.jdo.option.ConnectionPassword=123456
+ ports:
+ - 9083:9083
+ volumes:
+ - ../hive/mysql-connector-j-8.2.0.jar:/opt/hive/lib/mysql.jar
+ restart: unless-stopped
+ networks:
+ - sakura
+
networks:
sakura:
driver: bridge
\ No newline at end of file