How to Enable HDP
-
Create a new MySQL database: MDHDP
-
Enter the container:
docker exec -it $(docker ps | grep -E 'mingdaoyun-community|mingdaoyun-hap' | awk '{print $1}') bash -
Log in to MySQL:
mysql -h sc -P 3306 -uroot -p123456 -
Create the database:
CREATE DATABASE IF NOT EXISTS MDHDP DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci;
-
-
If MongoDB is enabled with authentication, you will need to manually create the
mdhdpdatabase. Refer to How to Create a MongoDB Database. -
Deploy the Flink service by referring to: How to Deploy Flink Service
-
HDP requires the Flink service. Before enabling HDP, ensure that the Flink service has been successfully deployed.
-
If Flink was previously deployed for data integration or aggregation table functionality, you need to upgrade Flink to 1.19.720.
Upgrade NoticeAfter upgrading Flink, pre-existing data integration synchronization tasks and aggregation tables must be manually restarted to resume operation.
-
Flink Standalone Mode: Cross-Version Upgrade Guide
-
Flink Cluster Mode: Cross-Version Upgrade Guide
-
-
-
Download the HDP image (Offline Package Downloads):
- Linux amd64
- Linux arm64
docker pull registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-hdp:1.1.0docker pull registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-hdp-arm64:1.1.0 -
Modify the
docker-compose.yamlfile (default path:/data/mingdao/script/docker-compose.yaml).-
Add the HDP service:
- Linux amd64
- Linux arm64
hdp:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-hdp:1.1.0environment:<<: *app-environmenthdp:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-hdp-arm64:1.1.0environment:<<: *app-environment -
Add the
ENV_HDP_ENABLEenvironment variable to theappservice:app:environment:ENV_HDP_ENABLE: "true"Click to View the Complete Changes Example
- Linux amd64
- Linux arm64
version: '3'services:app:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-hap:7.3.4environment: &app-environmentENV_ADDRESS_MAIN: "https://hap.domain.com"ENV_APP_VERSION: "7.3.4"ENV_API_TOKEN: "******"ENV_FLINK_URL: "http://flink:8081"ENV_HDP_ENABLE: "true" # Added: Enable HDPports:- 8880:8880volumes:- ./volume/data/:/data/- ../data:/data/mingdao/datasc:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-sc:3.2.0environment:<<: *app-environmentvolumes:- ./volume/data/:/data/command:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-command:node1018-python36doc:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:2.0.0flink:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-flink:1.19.720entrypoint: ["/bin/bash"]command: ["/run.sh"]environment:ENV_FLINK_S3_ENDPOINT: "sc:9010"volumes:- ./volume/data/:/data/# --- Newly Added Service ---hdp:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-hdp:1.1.0environment:<<: *app-environmentversion: '3'services:app:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-hap-arm64:7.3.4environment: &app-environmentENV_ADDRESS_MAIN: "https://hap.domain.com"ENV_APP_VERSION: "7.3.4"ENV_API_TOKEN: "******"ENV_FLINK_URL: "http://flink:8081"ENV_HDP_ENABLE: "true" # Added: Enable HDPports:- 8880:8880volumes:- ./volume/data/:/data/- ../data:/data/mingdao/datasc:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-sc-arm64:3.2.0environment:<<: *app-environmentvolumes:- ./volume/data/:/data/command:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-command-arm64:node1018-python36doc:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc-arm64:2.0.0flink:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-flink-arm64:1.19.720entrypoint: ["/bin/bash"]command: ["/run.sh"]environment:ENV_FLINK_S3_ENDPOINT: "sc:9010"volumes:- ./volume/data/:/data/# --- Newly Added Service ---hdp:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-hdp-arm64:1.1.0environment:<<: *app-environment
-
-
Restart services by running the following command in the decompressed installation manager directory:
bash service.sh restartall