Big data platform deployment method, deployment platform, device and storage medium

Through the pre-imported installation package and Kubernetes automated deployment method, the problem of cumbersome big data platform deployment process and component consistency is solved, and efficient and rapid deployment and maintenance are achieved.

CN118860428APending Publication Date: 2024-10-29RUISHI (SUZHOU) VIDEO TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410855303.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The deployment process of the big data platform is cumbersome and prone to misoperations, leading to deployment failures. Different deployment personnel may cause different component installation directories and configurations, making subsequent maintenance difficult and preventing quick recovery during the deployment process.

Method used

Provides a big data platform deployment method that uses pre-imported installation packages, including deployment scripts, component image files and service application packages, and uses kubernetes to achieve automated deployment and automatically execute deployment steps, including service installation, SQL script execution and dependency checking. , to ensure component consistency and directory unification.

Benefits of technology

It improves the efficiency and success rate of big data platform deployment, reduces deployment time and effort, ensures the consistency of components after deployment, reduces maintenance costs and operation and maintenance difficulties, and solves the problem of rapid recovery during the deployment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860428A_ABST
    Figure CN118860428A_ABST
Patent Text Reader

Abstract

The invention provides a big data platform deployment method, a deployment platform, equipment and a storage medium, the method is implemented based on the deployment platform, and an installation package is imported into the deployment platform in advance. The installation package comprises a deployment script, a mirror image file of each component of the big data platform, and an application package and a deployment configuration file corresponding to each service of the big data platform; the method comprises the steps that a deployment platform receives a big data platform deployment request and receives a deployment parameter actual value; the deployment platform updates a corresponding deployment parameter default value in the deployment configuration file based on the deployment parameter actual value to generate an actual configuration file; and the deployment platform sequentially executes each execution step in the deployment script to perform big data platform deployment. By adopting the method and the device, the automatic deployment of the big data platform is realized, the platform deployment efficiency and success rate are improved, the operation of deployment personnel is more convenient, and the consistency of the deployed big data platform can be kept.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the rapid development of the information age, enterprises are seeking data value. As an integrated platform for data integration, processing, analysis and application, the demand for big data platforms is increasing. However, since big data platforms rely on many types of big data components and there is a clear dependence between them, when deploying big data platforms, it is necessary to install and debug each component first, resulting in higher and higher requirements for the deployment and operation and maintenance process of big data platforms for operation and maintenance personnel, and the time and energy for maintaining clusters continue to increase. The traditional operation and maintenance installation mode will be installed and managed purely manually or through open source software such as Ambari. If purely manually deployed, it will take several days to build a complete big data platform, and after the deployment is completed, operation and maintenance will be very difficult. If you use Ambari software, you first need to find a node to deploy MySQL, then select a master node, install Ambari's management node, and select the database address on the Ambari interface that starts, and then execute the action of initializing the database. After the initialization is completed, you need to first select the big data version supported by Ambari. The version configuration is obtained from the official yum repository, or you need to build a yum repository yourself. Then select the components to be deployed in batches. After the selection is completed, you need to deploy the nodes one by one and configure the components. This method requires a lot of parameters to be configured, and it takes several hours to complete all the configurations. After all the configurations are completed, Ambari will first pass the installation package to the specified node, and then perform the installation in sequence. If there is a configuration error during the installation process and it needs to be cleaned up, the operation and maintenance personnel need to manually log in to the host to operate. The complete deployment process takes more than three hours.

[0003] Therefore, none of the above deployment technologies can solve the following problems:

[0004] 1. The deployment steps are cumbersome, and manual deployment is prone to errors, resulting in deployment failure.

[0005] 2. Different deployment personnel habits may lead to different installation directories and configurations of various components when deploying in multiple environments, causing difficulties in subsequent maintenance.

[0006] 3. If a step fails during the deployment process, it cannot be recovered quickly. Summary of the invention

[0007] In response to the problems in the prior art, the purpose of this application is to provide a big data platform deployment method, deployment platform, equipment and storage medium to realize automatic deployment of the big data platform, improve the efficiency and success rate of platform deployment, make it more convenient for deployment personnel to operate, and maintain the consistency of the big data platform after deployment.

[0008] The embodiment of the present application provides a big data platform deployment method, which is implemented based on a deployment platform. An installation package is pre-imported into the deployment platform. The installation package includes a deployment script, image files of various components of the big data platform, application packages corresponding to various services of the big data platform, and a deployment configuration file. The deployment script includes multiple execution steps arranged in sequence.

[0009] The deployment method comprises the following steps:

[0010] The deployment platform receives the big data platform deployment request and receives the actual values ​​of the deployment parameters;

[0011] The deployment platform updates the corresponding deployment parameter default values ​​in the deployment configuration file based on the deployment parameter actual values ​​to generate an actual configuration file;

[0012] The deployment platform sequentially executes each execution step in the deployment script based on the actual configuration file to deploy the big data platform; wherein the execution step includes a service installation step, and executing the service installation step includes: the deployment platform executes the service installation command based on the application package corresponding to the service to be installed and the actual configuration file, so as to install the corresponding service of the big data platform through kubernetes.

[0013] By adopting the big data platform deployment method, a deployment platform is provided, wherein a pre-prepared installation package is imported, the installation package has a pre-edited deployment script, a component image file of the big data platform and a service application package, and a deployment configuration file is provided. When a user requests to deploy the big data platform, the deployment script is directly called, that is, the deployment process of the big data platform can be automatically realized, and by modifying the deployment parameters in the deployment configuration file, the user-defined customized big data platform deployment can be realized to meet the needs of different usage scenarios, with higher versatility, and easy to use and quick deployment. The user no longer needs to manually operate each deployment step and manually configure all deployment parameters, which improves the efficiency of the big data platform deployment and greatly saves the time and energy spent by the user during deployment. In addition, the big data platform automatically deployed by the installation package has good consistency, such as the directory and configuration of each component installation after deployment have a unified plan, which makes subsequent maintenance more convenient and reduces the cost of use and maintenance.

[0014] In some embodiments, at least one of the image files is configured with a shell script;

[0015] The execution step also includes a running step, and executing the running step includes:

[0016] After a service is installed, the deployment platform calls the application programming interface corresponding to the service provided by Kubernetes, logs into the container corresponding to the service, and executes the instructions of the shell script in the container.

[0017] In some embodiments, when executing the service installation step, the deployment platform executes a service installation command based on the application package corresponding to the service to be installed and the actual configuration file to install the corresponding service of the big data platform through kubernetes, including the following steps:

[0018] The deployment platform determines whether the services to be installed are configured with dependencies;

[0019] If the service to be installed is configured with dependencies, the deployment platform queries whether the services that the service to be installed depends on have been deployed;

[0020] If yes, determine whether there is an installed service with the same name as the service to be installed and whether overwriting is allowed;

[0021] If there is no installed service with a duplicate name, or there is an installed service with a duplicate name and overwriting is allowed, the helminstall command is executed based on the application package corresponding to the service to be installed and the actual configuration file to install the corresponding service of the big data platform through kubernetes;

[0022] If not, the application package to be installed will not be installed and an error prompt will be issued.

[0023] In some embodiments, the execution step further includes an SQL script execution step, the deployment platform pre-stores an SQL script, and the actual values ​​of the deployment parameters in the actual configuration file include execution switch values ​​for data warehouse deployment, functional component deployment, and platform deployment, as well as execution switch values ​​for each service deployment;

[0024] The deployment platform sequentially executes each execution step in the deployment script, including determining the service to be deployed according to the switch value, and sequentially installing and deploying each service according to the set order;

[0025] The data warehouse deployment includes: the deployment platform executes the service installation steps of each service corresponding to the data warehouse, and completes the deployment of the data warehouse through kubernetes, and the service corresponding to the data warehouse includes MySQL service;

[0026] Functional component deployment includes: the deployment platform executes the service installation steps of each service corresponding to each functional component, and completes the deployment of each functional component through kubernetes;

[0027] Platform deployment includes: the deployment platform executes the SQL script execution steps in the MySQL service, creates the table structure of each business platform, and executes the service installation steps of each service corresponding to the big data platform, and completes the deployment of the big data platform through kubernetes.

[0028] In some embodiments, the service corresponding to the data warehouse further includes a node service. A startup shell script is deployed in the image file of the data warehouse. The startup shell script is configured to be called after the node service is installed in the container to implement the following steps:

[0029] Determine whether the node service has been initialized according to the initialization mark at the specified position on the disk where the node service is mounted. If it has been initialized, execute the node service startup process. If it has not been initialized, initialize the node service, and modify the initialization mark and execute the node service startup process after the initialization is completed.

[0030] In some embodiments, the execution step further includes a copying step and a running step, and the installation package further includes a service dependency file of the specified service; and the deployment of the specified service includes the following steps:

[0031] The deployment platform executes the service installation steps of the specified service and installs the specified service through kubernetes;

[0032] The deployment platform executes a copying step to copy the service dependency file of the specified service into a container of the data warehouse;

[0033] The deployment platform executes the running step, logs into the container of the data warehouse, runs the shell script in the container, and stores the service dependency file in the data warehouse.

[0034] In some embodiments, when the deployment platform executes each execution step in the deployment script in sequence, the deployment platform records the execution results of the steps that have been executed. If the execution result is failure, the deployment platform interrupts the execution and initiates an error prompt. After the user fixes the error, the deployment platform continues to execute from the previously failed execution step or restarts from the first execution step according to the user's choice.

[0035] The embodiment of the present application further provides a deployment platform, which is applied to the big data platform deployment method, and the deployment platform includes:

[0036] An import module, used to import an installation package, wherein the installation package includes a deployment script, image files of various components of the big data platform, application packages corresponding to various services of the big data platform, and deployment configuration files, wherein the deployment script includes a plurality of execution steps arranged in sequence;

[0037] A parameter setting module, used to receive a big data platform deployment request and receive actual values ​​of deployment parameters, update corresponding default values ​​of deployment parameters in the deployment configuration file based on the actual values ​​of deployment parameters, and generate an actual configuration file;

[0038] A deployment module is used to sequentially execute each execution step in the deployment script based on the actual configuration file to deploy the big data platform; wherein the execution step includes a service installation step, and executing the service installation step includes: the deployment platform executes the service installation command based on the application package corresponding to the service to be installed and the actual configuration file, so as to install the corresponding service of the big data platform through kubernetes.

[0039] The deployment platform can implement the steps of the above-mentioned big data platform deployment method when requested by the user. Therefore, the deployment platform can obtain the technical effects of the above-mentioned big data platform deployment method.

[0040] The present application also provides a big data platform deployment device, including:

[0041] processor;

[0042] a memory storing executable instructions of the processor;

[0043] Wherein, the processor is configured to perform the steps of the big data platform deployment method by executing the executable instructions.

[0044] By adopting the big data platform deployment device provided in the present application, the processor executes the big data platform deployment method when executing the executable instructions, thereby obtaining the beneficial effects of the above-mentioned big data platform deployment method.

[0045] An embodiment of the present application also provides a computer-readable storage medium for storing a program, which, when executed by a processor, implements the steps of the big data platform deployment method.

[0046] By adopting the computer-readable storage medium provided in the present application, the program stored therein implements the steps of the big data platform deployment method when executed, thereby obtaining the beneficial effects of the above-mentioned big data platform deployment method. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings.

[0048] Figure 1 is a flow chart of a big data platform deployment method according to an embodiment of the present application;

[0049] Figure 2 is a schematic diagram of a deployment platform according to an embodiment of the present application;

[0050] Figure 3 is a schematic diagram of the composition structure of an application package according to an embodiment of the present application;

[0051] Figure 4 It is a schematic diagram of the composition structure of an installation package of an embodiment of the present application;

[0052] Figure 5 is a flow chart of checking dependencies when installing a service according to an embodiment of the present application;

[0053] Figure 6 It is a structural diagram of a big data platform deployment device according to an embodiment of the present application;

[0054] Figure 7 It is a schematic diagram of the structure of a computer storage medium according to an embodiment of the present application. DETAILED DESCRIPTION

[0055] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and the concepts of the example embodiments will be fully conveyed to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their repeated description will be omitted. Although "first" or "second" etc. are used in this specification to represent certain features, they are only used to represent the function and are not used as a limitation on the number and importance of specific features.

[0056] In order to solve the technical problems in the prior art, the embodiment of the present application provides a big data platform deployment method, which is implemented based on the deployment platform. The deployment platform is pre-imported with an installation package, which includes a deployment script, an image file of each component of the big data platform, an application package corresponding to each service of the big data platform, and a deployment configuration file. Among them, each component includes one or more services, and each service corresponds to an application. For example, the big data platform includes an HDFS data warehouse component (Hadoop distributed file system), a Flink component (a unified computing framework combining batch processing and stream processing), a Spark component (a component provided by Spark for real-time streaming data processing, which can realize real-time calculation and analysis of continuous data streams), a Kyuubi component (distributed multi-tenant gateway), a Trino component (an open source distributed SQL query engine), a Knox component (a proxy gateway system for protecting the security of the Hadoop ecosystem, providing a unique rest service entrance for the Hadoop cluster, and belonging to the Hadoop ecosystem with the Flink component and the Spark component), etc. The data warehouse component includes at least a JournalNode log node service, a NameNode name node service, a data node DataNode service, a Hive Metastore service (supporting metadata version control and transaction management), etc.

[0057] The big data platform deployment method of this application is implemented based on kubernetes. Through kubernetes, the life status of each service can be easily managed, and the resources between services can be effectively isolated to reduce interference. Figure 1 As shown, in this embodiment, the big data platform deployment method includes the following steps:

[0058] S100: The deployment platform receives the big data platform deployment request and receives the actual value of the deployment parameter;

[0059] Specifically, the deployment platform can provide a deployment interface for interaction with users. A deployment button is displayed in the deployment interface. Users can click the deployment button to initiate a big data platform deployment request. Then, the deployment platform pops up a deployment parameter editing page. The deployment parameter editing page displays the default values ​​of the deployment parameters in the deployment configuration file that users can choose to modify. Users can modify the deployment parameters to the parameters they need, or choose not to modify them. In this case, deployment will be performed based on the default values ​​later.

[0060] Deployment parameters may include, for example, execution switch values ​​of each component and each service and parameters required for deployment of each service. Users can choose whether to deploy each component and each service according to the set execution switch values, and customize the components and services they need for deployment, thus realizing customized deployment of the big data platform.

[0061] S200: The deployment platform updates the corresponding deployment parameter default values ​​in the deployment configuration file based on the deployment parameter actual values ​​to generate an actual configuration file;

[0062] In the actual configuration file, the deployment parameters modified by the user have been replaced with the actual values ​​of the deployment parameters. For the deployment parameters not modified by the user, the default values ​​of the deployment parameters are still used.

[0063] S300: The deployment platform executes each execution step in the deployment script in sequence to deploy the big data platform; wherein, the execution step includes a service installation step, and executing the service installation step includes: the deployment platform executes the service installation command based on the application package corresponding to the service to be installed and the actual configuration file, so as to install the corresponding service of the big data platform through kubernetes.

[0064] The service installation command is an installation command predefined in the deployment platform, which at least includes determining whether the service installation conditions are currently met, and calling the helm install command to install the corresponding service of the big data platform in kubernetes when the service installation conditions are met. Here, the judgment of whether the service installation conditions include, for example, whether the dependency conditions of the service are met, that is, whether the service on which the current service depends has been deployed when the current service configuration has dependencies. The judgment of whether the service installation conditions are met may also include, for example, whether there are already services with duplicate names and whether overwriting is allowed. The implementation method of the specific service installation command will be described in detail below. Helm is a package manager for kubernetes. For users, after using helm, they do not need to understand the Yaml syntax of Kubernetes and write application deployment files. They can download and install the required applications on kubernetes through helm. Helm also provides powerful functions for service deployment, deletion, upgrade, and rollback of applications on kubernetes. The deployment platform interacts with helm and executes the helm install (installation) command. Helm interacts with kubernets, installs services in the big data platform through kubernetes, and finally completes the deployment of the big data platform in the cloud platform. Kubernetes is an open source containerized application for managing multiple hosts in a cloud platform. Kubernetes provides a mechanism for application deployment, planning, updating, and maintenance.

[0065] By adopting the big data platform deployment method, a deployment platform is provided, wherein a pre-prepared installation package is imported, the installation package has a pre-edited deployment script, a component image file of the big data platform and a service application package, and a deployment configuration file is provided. When a user requests to deploy the big data platform, the deployment script is directly called, that is, the deployment process of the big data platform can be automatically realized, and by modifying the deployment parameters in the deployment configuration file, the user-defined customized big data platform deployment can be realized to meet the needs of different usage scenarios, with higher versatility, and easy to use and quick deployment. The user no longer needs to manually operate each deployment step and manually configure all deployment parameters, which improves the efficiency of the big data platform deployment and greatly saves the time and energy spent by the user during deployment. In addition, the big data platform automatically deployed by the installation package has good consistency, such as the directory and configuration of each component installation after deployment have a unified plan, which makes subsequent maintenance more convenient and reduces the cost of use and maintenance.

[0066] like Figure 2 As shown, the embodiment of the present application further provides a deployment platform, which is applied to the big data platform deployment method, and the deployment platform includes:

[0067] The import module M100 is used to import the installation package, which includes a deployment script, image files of various components of the big data platform, application packages and deployment configuration files corresponding to various services of the big data platform, and the deployment script includes multiple execution steps arranged in sequence; Figure 2 As shown, in this embodiment, the import module M100 is also used to upload the image files of each component of the big data platform to the image warehouse (docker registry) for storage after importing the installation package, upload the deployment configuration file and the deployment script to the file storage for storage, and upload the application packages corresponding to each service of the big data platform to the database for storage, and record each storage address;

[0068] The parameter setting module M200 is used to receive a big data platform deployment request and receive actual values ​​of deployment parameters, update corresponding default values ​​of deployment parameters in the deployment configuration file based on the actual values ​​of deployment parameters, and generate an actual configuration file;

[0069] The deployment module M300 is used to deploy the big data platform by sequentially executing each execution step in the deployment script based on the actual configuration file; wherein the execution step includes a service installation step, and executing the service installation step includes: the deployment platform executes the service installation command based on the application package corresponding to the service to be installed and the actual configuration file, so as to install the corresponding service of the big data platform through kubernetes.

[0070] The deployment platform can implement the steps of the above-mentioned big data platform deployment method when requested by the user. Therefore, the deployment platform can obtain the technical effects of the above-mentioned big data platform deployment method, which will not be elaborated here.

[0071] In this embodiment, the step S100: before the deployment platform receives the big data platform deployment request, further includes the step of the deployment platform importing the installation package, which specifically includes the following steps:

[0072] The deployment platform imports the installation package;

[0073] The deployment platform uploads the image files of each component of the big data platform to the image warehouse (docker registry) for storage, uploads the deployment configuration file and the deployment script to the file storage for storage, and uploads the application packages corresponding to each service of the big data platform to the database for storage, and records each storage address. The storage address of the image file is also written in the application package. When kubernetes creates a container later, it can determine the storage address of the image file based on the application package, and automatically pull the image file to be used from the image warehouse.

[0074] In the present application, before executing the big data platform deployment method, the step of preparing an installation package is also included. By making a unified installation package and deploying the big data platform based on the unified installation package, the possibility of configuration errors during user deployment can be reduced, and the consistency between big data platforms after deployment can be improved. The deployment platform can also provide pages and functions for making installation packages, and unified production of installation packages can be performed through the pages made by the installation package. The specific process of preparing the installation package is first introduced below. The production of the installation package mainly includes three parts: making an image file, making an application package, and combining to obtain an installation package.

[0075] (1) Create an image file

[0076] Through dockerfiler, build the images required for the operation of various components of the big data platform, such as HDFS components, Flink components, Spark components, Kyuubi components, Trino components, Knox components, Hive Metastore components, etc., name the images according to the component names, and export them into image files. The image defines the running commands of each service in the component, as well as some supporting parameter items. In order to reduce the number and size of images, reuse images for services of the same type and distinguish them by different commands or parameters. Taking the HDFS component as an example, the image of this component needs to provide the running capabilities of its three services: JournalNode service, NameNode service, and DataNode service. The same image can be reused, and the specific running services can be controlled by setting different parameters at startup. For example, if the JournalNode parameter is passed in at startup, the JournalNode service will run. Furthermore, a custom shell script can be configured in the image. The shell script can be configured to call the shell script to execute the required function after the service is installed, or after the service is started, the deployment platform logs in to the container through the container interface provided by kubernets and calls the shell script in the container to execute the required function. For example, a shell script is written according to the steps in the actual operation process of the HDFS component. After the service is installed, the shell script is called and executes the following steps: 1. Initialize the configuration, 2. Format the JournalNode service, NameNode service, and DataNode service respectively, and 3. Start the services in sequence. The image of the Flink component can provide the ability to start the JobManager service, TaskManager service, and HistoryServer service information storage service.

[0077] (2) Create an application package

[0078] Through helm, each component is built into a Kubernetes application package according to the minimum executable module. Each minimum executable module corresponds to a service. The application package defines the Kubernetes object template when deploying the service, the application configuration information that needs to be filled in, the default value given in the application configuration information, and can be modified by the user. Figure 3 As shown, in this embodiment, the composition structure of the application package includes the following files:

[0079] (2.1) The application package description file chart.yalm defines the component name, the version number of the description file, and optionally includes the application version, description, icon, maintainer, etc. An example of the content of a description file is as follows:

[0080] #Required

[0081] apiVersion:v2#Helm API version, v2 corresponds to Helm 3

[0082] name:hdfs-name-node#name

[0083] version:0.2.0#Version

[0084] #Optional

[0085] appVersion:3.3.1#Application version

[0086] description:A Helm chart for HDFS HDFS Name Node#Description

[0087] icon: / HDFS.png#icon

[0088] Maintainers:

[0089] (2.2) One or more template files, saved in the templates folder, are used to define the kubernetes structure of the control unit, following the standard conventions for writing Go templates. The template file will include the version number, type, metadata, and specific description (Spec) of the Kubernetes API used. In the metadata and specific description, dynamic settings can be made through the template language. The name, label, comment, etc. are preset through the template in the metadata. In the specific description, the number of instances started by the module and the service locator are set; the construction description of the container includes the image name used by the container, the command to start the container, the environment variables of the container, the resources required by the container, the disk mount of the container, and the probe for monitoring the life status of the container. For example: NameNode is deployed as a StatefuleSet type service on Kubernetes, and 2 Pods are started. The content of its template file is as follows (some parts have been deleted, and only some content is shown as an example):

[0090]

[0091]

[0092] Among them, the JournalNode service will use the configmap template when it starts to generate the actual parameter file for the HDFS component runtime. All components or modules that need to use HDFS configuration will reference the configmap template to reduce their operations on HDFS configuration. The NameNode service also relies on ZKFC (failover controller) to ensure high availability when it is running. Therefore, in the NameNode application package, configure the NameNode service itself and the ZKFC container.

[0093] (2.3) The application package may also include a service file that describes how to provide services to the outside world.

[0094] (2.4) The application package may also include an application configuration parameter file, values.yaml, which is a template value file implemented in the yaml language. This file is used to help verify whether the template replacement meets the expected effect and define the default values ​​of the parameters. When a user requests to deploy a big data platform, the user can also modify the application configuration parameters in each application configuration parameter file through the deployment parameter editing page to replace the default values ​​in the application configuration parameter file.

[0095] (3) Combine to get the installation package

[0096] Predefine the deployment steps for a complete big data platform and the dependencies between various services, obtain the deployment script, and combine the deployment script with other files to obtain the installation package. Figure 4 As shown, the contents of the installation package include:

[0097] (3.1) The description information file dolphin.yaml defines the name of the installation package (for example, named after the big data platform to be deployed), version number information, etc.

[0098] (3.2) The deployment script startup.dol includes multiple execution steps arranged in sequence. When the deployment script is called by the deployment platform, each execution step is executed in sequence to complete the deployment of the big data platform through kubernetes.

[0099] In this embodiment, the types of defined execution steps include the following:

[0100] Table 1 Execution steps description table

[0101]

[0102] (3.3) The deployment configuration file values.yaml defines the default values ​​of the deployment parameters used by the entire installation package. The parameters in this file are visible to all application packages.

[0103] (3.4) The application package is stored in the modules folder.

[0104] (3.5) The image files required by the application package are stored in the images folder.

[0105] (3.6) The SQL folder defines the SQL scripts that need to be executed during the deployment process.

[0106] (3.7) The installation package may also include additional configuration files required by the application package, which are stored in the config folder and imported into kubernetes as configMap. Configuration files include, for example, log configuration files for component runtime. ConfigMap is an API object used in Kubernetes to store and manage application configuration data. It can separate configuration items from container images, decouple configuration from code, and simplify the application deployment and upgrade process. ConfigMap can store data in the form of key-value pairs, which can be mapped to the container's environment variables, command line parameters, or mounted to the container's file system.

[0107] Based on the configuration in the deployment platform and installation package, you can specify the order of deployment of each service, dependency order, parameter configuration, and other issues when deploying the big data platform.

[0108] In this embodiment, the execution step further includes a running step, namely the above-mentioned RUN step, and executing the running step includes:

[0109] After a service is installed, the deployment platform calls the application programming interface corresponding to the service provided by Kubernetes, logs into the container corresponding to the service, and executes the instructions of the shell script in the container.

[0110] Figure 5 The execution process of the service installation step of this embodiment is shown. In this embodiment, the deployment of a service needs to go through the process of installing the service through the application package, initializing the service, and starting the service. The service deployment is completed after the service is successfully started. In this embodiment, the service installation conditions include satisfying the following two conditions at the same time: (1) The service has no configured dependencies or the services it depends on have been deployed; (2) There are no installed services with duplicate names, or there are installed services with duplicate names but overwriting is allowed. Figure 5 As shown, when executing the service installation step, the deployment platform executes the service installation command based on the application package corresponding to the service to be installed and the actual configuration file to install the corresponding service of the big data platform through kubernetes, including the following steps:

[0111] S010: The deployment platform determines whether the services to be installed are configured with dependencies;

[0112] Specifically, the dependency relationship can be set in advance in the deployment configuration file or in the deployment script. The deployment platform determines whether the service to be installed is configured with a dependency relationship based on the dependency relationship configuration in the actual configuration file or the deployment script. If there is no dependency relationship, it means that the service does not need to rely on the deployment of other services first. If there is a dependency relationship, it means that another service must be deployed first before the installation of this service can be performed.

[0113] S020: If the service configuration to be installed has dependencies, the deployment platform queries whether the services that the service to be installed depends on have been deployed;

[0114] If the dependent service has been deployed or no dependency relationship is configured, then S030: determine whether there is an installed service that is the same as the service to be installed; specifically, determine whether there is an installed service with the same name as the service to be installed;

[0115] If there is an installed service, then S040, judging whether to allow overwriting according to the actual configuration file;

[0116] If there is no installed service identical to the service to be installed or there is and overwriting of the installed service is allowed, S050: executing the helminstall command based on the application package corresponding to the service to be installed and the actual configuration file to install the corresponding service of the big data platform through kubernetes;

[0117] If the dependent service is not deployed, or the dependent service is deployed but there is an installed service and it does not cover it, then continue to step S060: do not install the current application package to be installed, and issue an error prompt. The user can handle it in time after receiving the error prompt.

[0118] In this embodiment, the execution step further includes a SQL script execution step, namely the above-mentioned EXEC step. SQL scripts are pre-stored in the deployment platform. Executing the SQL script execution step includes selecting a database and executing a SQL script with a specified name.

[0119] In this embodiment, the deployment of the big data platform can be divided into three parts: (1) data warehouse deployment, (2) functional component deployment, and (3) platform deployment. Part (2) must be executed after part (1) is deployed, and part (3) must be executed after part (2) is deployed. However, the user can choose to deploy only (1), or only (1) and (2), or (1), (2), and (3).

[0120] In this embodiment, after the user initiates a big data platform deployment request and fills in the actual value of the deployment parameter, the actual value is overwritten with the default value in the deployment configuration file to obtain the actual configuration file and save it in the file storage. Then the deployment script is called to complete the big data platform deployment based on the deployment script and the actual value of the deployment parameter in the actual configuration file. The actual value of the deployment parameter in the actual configuration file includes the execution switch value for data warehouse deployment, functional component deployment and platform deployment, as well as the execution switch value for each service deployment. The actual value of the deployment parameter may also include parameter values ​​such as the service deployment type and the selection of the physical disk where the service is mounted. In step S300, the deployment platform sequentially executes each execution step in the deployment script, including determining the service to be deployed according to the switch value, and sequentially installing and deploying each service according to the set order. For example, the user can select which step or steps of the above (1), (2) and (3) to execute by setting the execution switch value, and can select the service deployed in the data warehouse, the type of service, and the physical disk where the service is mounted, so that customized big data platform customization can be achieved according to user needs. If the user does not select a service, the deployed service will be randomly selected according to the number of instances required. If the mounted disk is not selected, the default configured disk will be used and mounted in the HDFS data warehouse. The following describes the specific implementation methods of the deployment of the above three parts:

[0121] (1) Data warehouse deployment

[0122] The deployment platform executes the service installation steps of each service corresponding to the data warehouse, and completes the deployment of the data warehouse through kubernetes. The services corresponding to the data warehouse include multiple node services and MySQL services. The multiple node services include JournalNode service, DataNode service, and NameNode service. A startup shell script is deployed in the image file of the data warehouse. The startup shell script is configured to be called after the node service is installed in the container to implement the following steps: judging whether the node service has been initialized according to the initialization mark bit at the specified position on the disk mounted by the node service, if it has been initialized, executing the node service startup process to complete the node service deployment, if it has not been initialized, initializing the node service, and modifying the initialization mark bit and executing the node service startup process after the initialization is completed to complete the node service deployment. By adding the initialization mark bit on the mounted disk, the service startup speed can be improved. For the node service that has been initialized before, there is no need to perform additional initialization, ensuring that the node service will only start with the previously generated metadata under any circumstances, avoiding the waste of previously initialized data. Optionally, before installing the node service, you can use the DELETE command to delete the node service with the same name that has been deployed before to ensure the uniqueness of the deployed service. This process can also completely clean up the data to perform the cleanest installation.

[0123] Specifically, when deploying a data warehouse, first deploy the JournalNode service of HDFS. The deployment device will execute the service installation step INSTALL command according to the actual configuration file, execute the recorded application package, and generate the StatefulSet, Service and HDFS configmap of the JournalNode service. After installation, call the shell script to determine whether it has been initialized according to the initialization mark at the specified location on the disk. If it has not been initialized, enter the initialization process. After completion, modify the mark; if it has been modified, enter the regular startup process.

[0124] The NameNode service is configured with a dependency on the JournalNode service. It will wait for the JournalNode service to start before starting the deployment, executing the service installation steps, executing the recorded application package, and generating the StatefuleSet and Service configmap of the NameNode service. The shell script will also be called at startup to determine whether initialization has been performed based on the initialization mark at the specified location on the disk. If initialization has been performed, the service startup process will be executed to complete the deployment. If it has not been initialized, it will be initialized, and after initialization, the initialization mark will be modified and the service startup process will be executed.

[0125] When the NameNode service is successfully started, the DataNode service is deployed in turn. When the DataNode service is deployed, the MySQL service that the Hive MetaStore service depends on is deployed. In the MySQL service, the SQL execution step is executed to execute the SQL script with the specified name to create the MetaStore table structure. After the table structure is created, the MetaStore service is deployed and the configmap of the Service is generated.

[0126] When the Hive MetaStore is deployed, execute the RUN command in any container of the data warehouse and run the shell script to initialize the data warehouse permissions for the HDFS cluster. At this point, the data warehouse is deployed.

[0127] (2) Functional component deployment

[0128] In this embodiment, after the user selects the functional components to be deployed, the Trino component, FlinkHistoryServer component, Spark HistoryServer component, Kyuubi component, and Knox component will be deployed in sequence (the functional components not selected by the user will be skipped and not deployed). The deployment platform sequentially executes the service installation steps of each service corresponding to each functional component, and completes the deployment of each functional component through kubernetes.

[0129] Wherein, the execution step also includes a copying step, namely the COPY step mentioned above. In the case where a service requires a specific service dependency file, the installation package also includes the service dependency file of the specified service. The deployment of the specified service includes the following steps:

[0130] The deployment platform executes the service installation steps of the specified service and installs the specified service through kubernetes;

[0131] The deployment platform executes a copying step to copy the service dependency file of the specified service into a container of the data warehouse;

[0132] The deployment platform executes the running step, logs into the container of the data warehouse, runs the shell script in the container, and stores the service dependency file in the data warehouse.

[0133] Therefore, for specified services that require service dependency files, the deployment platform and installation package can also be used to complete the automated deployment of such services.

[0134] For example, the service of the Kyuubi component needs a dependent jar file when it runs, and it can only read the address of the data warehouse protocol cluster when obtaining the dependent file. During deployment, the jar file that the Kyuubi component service depends on is uploaded to any container of the data warehouse through the copy step, and the shell script in the container is called through the run step to perform specific actions to save the jar file in the data warehouse, so that Kyuubi can directly obtain the dependent jar file from the data warehouse cluster when it is subsequently executed.

[0135] (3) Platform deployment

[0136] The platform deployment process includes: the deployment platform executes the SQL script execution steps in the MySQL service, creates the table structure of each business platform, and executes the service installation steps of each service corresponding to the big data platform, and completes the deployment of the big data platform through kubernetes.

[0137] Specifically, the deployment platform needs to execute the SQL execution step in the specified MySQL service, call the SQL script with the specified name in the SQL folder, and create the table structure of each business platform. The business platform refers to the data demander or data provider who uses the deployed big data platform. The services corresponding to the big data platform include, for example, Redis service (distributed publish-subscribe system) and ElasticSearch component (search data analysis engine).

[0138] Among them, for the deployment process of the ElasticSearch component, due to the characteristics of the ElasticSearch component, it is necessary to execute the HTTP call step, call the specified name file in the http folder of the installation package, call the ElasticSearch API, and initialize the index.

[0139] Finally, you can continue to perform other deployment tasks that require services on the big data platform to complete the deployment of the complete big data platform.

[0140] In this embodiment, when the deployment platform executes each execution step in the deployment script in sequence, the deployment platform records the execution results of the executed steps. If the execution result is a failure, the deployment platform interrupts the execution and initiates an error prompt. The user can know in which specific deployment step the exception occurs according to the error prompt, and locate the abnormal position in time to make modifications. After the user fixes the error, the execution can continue from the previously failed execution step or restart from the first execution step according to the user's choice. Therefore, through the monitoring of the execution results of each execution step and the error prompt of the deployment platform, the problem of being unable to locate the abnormal position in time when an exception occurs during the deployment process is avoided, which is conducive to users to quickly fix the exception.

[0141] Therefore, by adopting the deployment platform and the big data platform deployment method based on the deployment platform, one-click deployment can be easily achieved for users. Before deployment, users do not need to configure all deployment parameters, but only need to modify some default values ​​according to their needs. During the deployment process, users do not need to care about and guide the execution order of each step of the operation, and the execution results of each step can be obtained and viewed in real time through the deployment platform, so as to obtain a customized big data platform that meets the needs of the actual environment, which greatly reduces the requirements for the user's operating ability and greatly reduces the time and energy required for the user to deploy the big data platform. The present application not only effectively utilizes the advantages of the convenience of kubernetes for service management, but also solves the problem that the service deployment process based on kubernetes in the prior art is very cumbersome, requiring users to configure a large number of parameters and manually operate to meet the dependency requirements. In addition, the present application improves the consistency of the big data platform after deployment by pre-setting the installation package, and facilitates subsequent maintenance, avoiding the problem of different directories and configurations of each component installation when multiple environments are deployed due to different habits of the deployment personnel. In addition, in this embodiment, the monitoring and error prompts of the execution results of the execution steps by the deployment platform also solve the problem that if a certain step fails in the deployment process, it cannot be quickly recovered.

[0142] An embodiment of the present application also provides a big data platform deployment device, comprising a processor; a memory, in which executable instructions of the processor are stored; wherein the processor is configured to execute the steps of the big data platform deployment method by executing the executable instructions.

[0143] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0144] Refer to the following Figure 6 The electronic device 600 according to this embodiment of the present application is described. Figure 6 The electronic device 600 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0145] like Figure 6 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.

[0146] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps of various exemplary embodiments of the present application described in the above big data platform deployment method section of this specification. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .

[0147] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .

[0148] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0149] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0150] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0151] By adopting the big data platform deployment device provided in the present application, the processor executes the big data platform deployment method when executing the executable instructions, thereby obtaining the beneficial effects of the above-mentioned big data platform deployment method.

[0152] The embodiment of the present application also provides a computer-readable storage medium for storing a program, which implements the steps of the big data platform deployment method when executed by a processor. In some possible implementations, various aspects of the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps of various exemplary implementations of the present application described in the above big data platform deployment method section of this specification.

[0153] refer to Figure 7 As shown, a program product 800 for implementing the above method according to an embodiment of the present application is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0154] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0155] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0156] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or cluster. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0157] By adopting the computer-readable storage medium provided in the present application, the program stored therein implements the steps of the big data platform deployment method when executed, thereby obtaining the beneficial effects of the above-mentioned big data platform deployment method.

[0158] The above content is a further detailed description of the present application in combination with specific preferred implementation methods, and it cannot be determined that the specific implementation of the present application is limited to these descriptions. For ordinary technicians in the technical field to which the present application belongs, several simple deductions or substitutions can be made without departing from the concept of the present application, which should be deemed to fall within the scope of protection of the present application.

Claims

1. A big data platform deployment method, It is characterized in that The implementation is based on a deployment platform, in which an installation package is pre-imported, and the installation package includes a deployment script, image files of various components of the big data platform, application packages and deployment configuration files corresponding to various services of the big data platform, and the deployment script includes a plurality of execution steps arranged in sequence; The deployment method comprises the following steps: The deployment platform receives the big data platform deployment request and receives the actual values ​​of the deployment parameters; The deployment platform updates the corresponding deployment parameter default values ​​in the deployment configuration file based on the deployment parameter actual values ​​to generate an actual configuration file; The deployment platform sequentially executes each execution step in the deployment script based on the actual configuration file to deploy the big data platform; wherein the execution step includes a service installation step, and executing the service installation step includes: the deployment platform executes the service installation command based on the application package corresponding to the service to be installed and the actual configuration file, so as to install the corresponding service of the big data platform through kubernetes.

2. The big data platform deployment method according to claim 1, It is characterized in that At least one of the image files is configured with a shell script; The execution step also includes a running step, and executing the running step includes: After a service is installed, the deployment platform calls the application programming interface corresponding to the service provided by Kubernetes, logs into the container corresponding to the service, and executes the instructions of the shell script in the container.

3. The big data platform deployment method according to claim 1, It is characterized in that When executing the service installation step, the deployment platform executes the service installation command based on the application package corresponding to the service to be installed and the actual configuration file to install the corresponding service of the big data platform through kubernetes, including the following steps: The deployment platform determines whether the services to be installed are configured with dependencies; If the service to be installed is configured with dependencies, the deployment platform queries whether the services that the service to be installed depends on have been deployed; If yes, determine whether there is an installed service with the same name as the service to be installed and whether overwriting is allowed; If there is no installed service with a duplicate name, or there is an installed service with a duplicate name and overwriting is allowed, the helminstall command is executed based on the application package corresponding to the service to be installed and the actual configuration file to install the corresponding service of the big data platform through kubernetes; If not, the application package to be installed will not be installed and an error prompt will be issued.

4. The big data platform deployment method according to claim 1, It is characterized in that The execution step also includes an SQL script execution step, wherein the deployment platform pre-stores an SQL script, and the actual values ​​of the deployment parameters in the actual configuration file include execution switch values ​​for data warehouse deployment, functional component deployment, and platform deployment, as well as execution switch values ​​for each service deployment; The deployment platform sequentially executes each execution step in the deployment script, including determining the service to be deployed according to the switch value, and sequentially installing and deploying each service according to the set order; The data warehouse deployment includes: the deployment platform executes the service installation steps of each service corresponding to the data warehouse, and completes the deployment of the data warehouse through kubernetes, and the service corresponding to the data warehouse includes MySQL service; Functional component deployment includes: the deployment platform executes the service installation steps of each service corresponding to each functional component, and completes the deployment of each functional component through kubernetes; Platform deployment includes: the deployment platform executes the SQL script execution steps in the MySQL service, creates the table structure of each business platform, and executes the service installation steps of each service corresponding to the big data platform, and completes the deployment of the big data platform through kubernetes.

5. The big data platform deployment method according to claim 4, It is characterized in that The service corresponding to the data warehouse also includes a node service. A startup shell script is deployed in the image file of the data warehouse. The startup shell script is configured to be called after the node service is installed in the container to implement the following steps: Determine whether the node service has been initialized according to the initialization mark at the specified position on the disk where the node service is mounted. If it has been initialized, execute the node service startup process. If it has not been initialized, initialize the node service, and modify the initialization mark and execute the node service startup process after the initialization is completed.

6. The big data platform deployment method according to claim 4, It is characterized in that The execution step further includes a copying step and a running step, and the installation package further includes a service dependency file of the specified service; the deployment of the specified service includes the following steps: The deployment platform executes the service installation steps of the specified service and installs the specified service through kubernetes; The deployment platform executes a copying step to copy the service dependency file of the specified service into a container of the data warehouse; The deployment platform executes the running step, logs into the container of the data warehouse, runs the shell script in the container, and stores the service dependency file in the data warehouse.

7. The big data platform deployment method according to claim 1, It is characterized in that When the deployment platform executes each execution step in the deployment script in sequence, the deployment platform records the execution results of the steps that have been executed. If the execution result is failure, the deployment platform interrupts the execution and issues an error prompt. After the user fixes the error, the deployment platform continues to execute from the previously failed execution step or restarts from the first execution step according to the user's choice.

8. A deployment platform, It is characterized in that The big data platform deployment method applied to any one of claims 1 to 7, wherein the deployment platform comprises: An import module, used to import an installation package, wherein the installation package includes a deployment script, image files of various components of the big data platform, application packages corresponding to various services of the big data platform, and deployment configuration files, wherein the deployment script includes a plurality of execution steps arranged in sequence; A parameter setting module, used to receive a big data platform deployment request and receive actual values ​​of deployment parameters, update corresponding default values ​​of deployment parameters in the deployment configuration file based on the actual values ​​of deployment parameters, and generate an actual configuration file; A deployment module is used to sequentially execute each execution step in the deployment script based on the actual configuration file to deploy the big data platform; wherein the execution step includes a service installation step, and executing the service installation step includes: the deployment platform executes the service installation command based on the application package corresponding to the service to be installed and the actual configuration file, so as to install the corresponding service of the big data platform through kubernetes.

9. A big data platform deployment device, It is characterized in that include: processor; a memory storing executable instructions of the processor; Wherein, the processor is configured to perform the steps of the big data platform deployment method described in any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium for storing a program, It is characterized in that When the program is executed by a processor, the steps of the big data platform deployment method described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Processing method for deploying cloud platform and product

    CN119336414A