From 79ac11fdb3170b145e90367820d88e08e007a5fd Mon Sep 17 00:00:00 2001 From: 3y Date: Sat, 28 Jan 2023 17:33:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=9A=84docker-compose=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- austin-data-house/src/main/resources/hive-site.xml | 1 - docker-compose.yml | 2 +- docker/hive/docker-compose.yml | 3 ++- stream-start.sh | 10 +++++++--- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/austin-data-house/src/main/resources/hive-site.xml b/austin-data-house/src/main/resources/hive-site.xml index 7b21093..75c51a6 100644 --- a/austin-data-house/src/main/resources/hive-site.xml +++ b/austin-data-house/src/main/resources/hive-site.xml @@ -3,7 +3,6 @@ - javax.jdo.option.ConnectionURL jdbc:postgresql://hive_ip:5432/metastore?createDatabaseIfNotExist=true diff --git a/docker-compose.yml b/docker-compose.yml index c4ec8fa..0db2999 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -87,7 +87,7 @@ services: - | FLINK_PROPERTIES= jobmanager.rpc.address: jobmanager - taskmanager.numberOfTaskSlots: 1 + taskmanager.numberOfTaskSlots: 2 - SET_CONTAINER_TIMEZONE=true - CONTAINER_TIMEZONE=Asia/Shanghai - TZ=Asia/Shanghai diff --git a/docker/hive/docker-compose.yml b/docker/hive/docker-compose.yml index 26f99a9..e867da5 100644 --- a/docker/hive/docker-compose.yml +++ b/docker/hive/docker-compose.yml @@ -45,11 +45,12 @@ services: - "9083:9083" hive-metastore-postgresql: image: bde2020/hive-metastore-postgresql:2.3.0 + ports: + - "5432:5432" presto-coordinator: image: shawnzhu/prestodb:0.181 ports: - "8080:8080" - volumes: namenode: datanode: \ No newline at end of file diff --git a/stream-start.sh b/stream-start.sh index 1765ee8..da83dd4 100644 --- a/stream-start.sh +++ b/stream-start.sh @@ -3,7 +3,11 @@ docker cp ./austin-stream/target/austin-stream-0.0.1-SNAPSHOT.jar austin_jobmanager_1:/opt/ docker exec -ti austin_jobmanager_1 flink run /opt/austin-stream-0.0.1-SNAPSHOT.jar -# local test -# docker cp ./austin-stream-0.0.1-SNAPSHOT.jar flink_docker_jobmanager_1:/opt/ -# docker exec -ti flink_docker_jobmanager_1 flink run /opt/austin-stream-0.0.1-SNAPSHOT.jar +# stream local test +# docker cp ./austin-stream-0.0.1-SNAPSHOT.jar austin_jobmanager_1:/opt/austin-stream-test-0.0.1-SNAPSHOT.jar +# docker exec -ti austin_jobmanager_1 flink run /opt/austin-stream-test-0.0.1-SNAPSHOT.jar + + +# data-house +# ./flink run austin-data-house-0.0.1-SNAPSHOT.jar