A deployment method for Flink, a real-time computing service for a big data platform based on Yarn

Automated deployment and management of Flink through Ansible and Ambari combined with Yarn solves the complexity and compatibility issues of traditional deployment methods, achieves rapid deployment and efficient operation and maintenance, enhances the resource scheduling and data processing capabilities of the big data platform, and reduces costs. .

CN112882728BActive Publication Date: 2024-10-22SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110317799.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-25
Publication Date
2024-10-22
Estimated Expiration
2041-03-25

AI Technical Summary

Technical Problem

Under the traditional manual installation and deployment method, big data component installation is complex and compatibility is difficult to solve. It is impossible to effectively monitor component status, which affects later operation and maintenance management. Moreover, Flink's multiple deployment modes make selection difficult and difficult to perfectly integrate with the big data platform.

Method used

Use Ansible as the initial installation and configuration tool, combined with Ambari for customized deployment and management, use Yarn to manage and schedule the real-time computing service Flink, create installation packages with different version numbers, automate deployment and update configuration, and use Ambari's customized integration service Flink , and start Flink through the Yarn-session command.

Benefits of technology

It achieves rapid deployment, reduces deployment costs, improves resource utilization efficiency and data processing capabilities, enhances visual display and operation management capabilities, significantly improves deployment efficiency and operation and maintenance management, and solves the cumbersome configuration and version differentiation of real-time computing Flink. question.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention discloses a deployment method of Flink, a real-time computing service for a big data platform based on Yarn, and belongs to the technical field of operation and maintenance management of big data platforms. The deployment method of Flink, a real-time computing service for a big data platform based on Yarn of the present invention prepares installation packages with different version numbers, combines the big data platform with customized deployment applications, loads and automatically updates configurations, and manages cluster nodes. The deployment method of Flink, a real-time computing service for a big data platform based on Yarn of the present invention can enhance the data processing capability, visualization display capability, and operation and management capability of the big data platform, realize rapid deployment, and reduce deployment costs at the same time, and has great promotion and application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of big data platform operation and maintenance management, and specifically provides a deployment method for Flink, a real-time computing service of a big data platform based on Yarn. Background Art

[0002] With the continuous development of the data era, an excellent data computing technology has a significant improvement effect on enterprise operation management optimization, business improvement, information value extraction, etc. Apache Flink has become a hot technical framework with its powerful computing power and advanced design concept, and is valued by many large Internet companies. However, how to quickly deploy Flink in production environments, achieve perfect integration with big data platform technology, and fully tap the potential of data has become a difficult problem that many developers must face.

[0003] In the traditional manual installation and deployment method, it is difficult to install big data components, component compatibility issues are difficult to solve, and the installation process is too complicated. After the installation and deployment is completed, the status and operation of the components cannot be effectively and timely monitored, which is not conducive to subsequent operation and maintenance.

[0004] There are many ways to install and deploy Flink, and the installation configurations of different modes are also different. Flink's cluster deployment modes include Mesos, Docker, Kubernetes, Yarn, etc. To integrate with the big data platform, you need to choose the appropriate deployment mode from many modes. Summary of the invention

[0005] The technical task of the present invention is to provide a deployment method for Flink, a real-time computing service for a big data platform based on Yarn, which can enhance the data processing capability, visualization display capability, and operation management capability of the big data platform, achieve rapid deployment, and reduce deployment costs in response to the above-mentioned problems.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A deployment method for Flink, a real-time computing service for a big data platform based on Yarn. The method creates installation packages with different version numbers, combines custom deployment applications on the big data platform, loads and automatically updates configurations, and manages cluster nodes.

[0008] Preferably, the deployment method of the Yarn-based big data platform real-time computing service Flink includes the following steps:

[0009] S1. Use Ansible as the initial installation and configuration tool;

[0010] S2. Use Ambari to install, manage and monitor the big data platform software;

[0011] S3. Use Ambari to install, manage and monitor Ambari's customized integrated service Flink;

[0012] S4. Manage and schedule the real-time computing service Flink through Yarn.

[0013] Preferably, in step S1, Ambari and the related interfaces and basic environment tool deployment process for Ambari to trigger the installation of big data software are developed into Ansible scripts, and the execution of Ansible scripts is triggered by Ansible commands to automate the installation.

[0014] Ansible is an advanced scripting language rather than a standard language. It does not require the installation of an agent and is divided into management nodes and remote managed nodes through SSH authentication. It has a wide range of applications, including various operating systems, virtualization, public clouds, etc.

[0015] Preferably, the basic environment tools include mysql database, jdk and nginx.

[0016] Preferably, in step S2, Ambari Server notifies AmbariAgent to install the corresponding big data platform software, and AmbariAgent periodically sends the status of each big data platform software module of each host to Ambari Server, and displays it to the user in the GUI interface of Ambari.

[0017] GUI stands for Graphical User Interface.

[0018] Ambari is a top open source project of the Apache Software Foundation. It is a tool for creating, managing, and monitoring large data distributed clusters. Ambari is a distributed architecture software consisting of Ambari Server and AmbariAgent.

[0019] Preferably, in step S3, a custom integrated service Flink deployed through Ambari is produced, and according to the development template requirements of Ambari's mpack package, Flink's yarn-based installation deployment is produced into Ambari's mpack package.

[0020] Preferably, the mpack package includes scripts for installation, start, stop, uninstall, security authentication and status check of Flink in Ambari based on yarn mode, version information, access link configuration files of Flink applications, and configuration parameter files of Flink services.

[0021] Preferably, in step S4, Flink is started through the Yarn-session command, the Yarn client checks whether the requested resources are available, uploads the Flink-related jar packages and configurations to hdfs, and the Yarn client applies to the RM for a Yarn container to start the AM, and starts the container in the Yarn node agent on the specific host to run Flink.

[0022] The deployment method of the big data platform real-time computing service Flink based on Yarn of the present invention forms an initialization installation and configuration tool using Ansible; Ambari is used to install, manage and monitor big data platform software such as Hadoop, Yarn, Ranger, Zookeeper, Solr, and Ambari's customized integrated service Flink; and Yarn is used to manage and schedule the real-time computing service Flink.

[0023] Compared with the prior art, the deployment method of the real-time computing service Flink of the big data platform based on Yarn of the present invention has the following outstanding beneficial effects: the deployment method of the real-time computing service Flink of the big data platform based on Yarn solves the cumbersome configuration of the real-time computing Flink deployment, improves the resource utilization efficiency, version differentiation and other problems. The automatic deployment of Flink is completed, and the combination with the big data platform enhances the resource scheduling and data processing capabilities of the big data platform; at the same time, it supports the interface installation of visualization and custom parameters; the health status monitoring after the service installation significantly improves the deployment efficiency and operation and maintenance management of the real-time computing service of the big data platform, reduces the deployment cost, realizes rapid deployment, and is closely integrated with the big data platform, enhancing the data processing capability, visualization display capability, and operation management capability of the big data platform, and has good promotion and application value. DETAILED DESCRIPTION

[0024] The following will further describe in detail the deployment method of the Flink real-time computing service for a big data platform based on Yarn in conjunction with an embodiment of the present invention.

[0025] Example

[0026] The deployment method of the Flink real-time computing service of the big data platform based on Yarn of the present invention comprises the following steps:

[0027] S1. Use Ansible as the initial installation and configuration tool.

[0028] Develop Ambari and the related interfaces and basic environment tool deployment process of Ambari triggering big data software installation into Ansible scripts, trigger the execution of Ansible scripts through Ansible commands, and automate the installation. Basic environment tools include mysql database, jdk and nginx.

[0029] S2. Use Ambari to install, manage and monitor the big data platform software.

[0030] Ambari Server notifies Ambari Agent to install the corresponding big data platform software. Ambari Agent periodically sends the status of each big data platform software module on each host to Ambari Server, which is displayed to the user on the Ambari GUI interface. GUI stands for Graphical User Interface. Ambari makes Hadoop big data software easier to use and can easily integrate our own Flink service for unified management by Ambari.

[0031] S3. Use Ambari to install, manage and monitor Ambari's customized integration service Flink.

[0032] Create a custom integrated service Flink deployed through Ambari. According to the development template requirements of Ambari's mpack package, make Flink's yarn-based installation and deployment into Ambari's mpack package. Python is used as the development language. The mpack package includes scripts for installing, starting, stopping, uninstalling, security authentication, and status checking Flink in Ambari based on yarn mode; version information and Flink application access link configuration files; Flink service configuration parameter files. Use commands to package into mpack packages of corresponding versions. When using, use the mpack installation command of ambari-server to add the deployment package to the Ambari cluster service. Use ambari-server to automatically install and deploy Flink, which is also convenient for version management. In order to ensure the security of service data, enable kerberos security authentication in Ambari. When Flink is started, you can set parameters in the Flink configuration interface on the Ambari service management page to enable security authentication. Flink generates a keytab ticket during installation and deployment. When accessing service data, it can be used normally after keytab authentication. This solves the problem of service security risks. Using Ambari as the management tool for installation and deployment is open source and community-supported. It can be redeveloped and is more convenient than manual methods. It can automatically install compatible components. On the Ambari Web page, you can set Flink service parameters according to your needs to achieve visual configuration management. Configuration parameters can be defined in the configuration module in the Ambari custom service mpack package. These parameters can be manually changed on the Ambari page, which facilitates dynamic adjustment of Flink-related configurations after deployment.

[0033] S4. Manage and schedule the real-time computing service Flink through Yarn.

[0034] Start Flink through the Yarn-session command. The Yarn client checks whether the requested resources are available, uploads Flink-related jar packages and configurations to hdfs, and applies to RM for a Yarn container to start AM. The container is started in the Yarn node agent on a specific host to run Flink.

[0035] The main functions of Yarn are resource management and job scheduling / monitoring. The main method is to create a global ResourceManager (RM) and several Application Masters (AM) for applications. Yarn arranges various resources (computing, memory, bandwidth, etc.) to NodeManager (Yarn's node agent) through ResourceManager. ResourceManager and NodeManager constitute the data computing framework. Yarn's job container is started, managed and monitored by NodeManager; ResourceManager schedules Yarn's job container to run various distributed applications. Flink starts a long-running cluster in Yarn and uses it in conjunction with hadoop big data software. The big data platform uses Yarn as a resource manager, making Flink's deployment method more convenient to manage when it is started in Yarn-session mode, making full use of cluster resources and improving machine utilization. When starting flink with the yarn-session command, the Yarn client will first check whether the requested resources are available, and then upload the jar package and configuration related to flink to hdfs. The Yarn client then requests a Yarn container from the ResourceManager to start the ApplicationMaster, and then starts a container in the Yarn NodeManager on a specific host to run Flink. After starting Flink in Yarn, a random Flink access port number and applicationId in Yarn are generated. The Flink web service is proxied through nginx configuration for external access, and Nginx is configured to implement simple user authentication, which improves security to a certain extent.

[0036] The embodiments described above are only preferred specific implementations of the present invention. Common changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included in the protection scope of the present invention.

Claims

1. A deployment method for Flink, a real-time computing service for a big data platform based on Yarn. Features: This method creates installation packages with different version numbers, combines the big data platform to customize the deployment application, loads and automatically updates the configuration, and manages the cluster nodes, including the following steps: S1. Using Ansible as the initial installation configuration tool, develop Ambari and the related interfaces and basic environment tool deployment process of Ambari triggering big data software installation into Ansible scripts, and trigger the execution of Ansible scripts through Ansible commands to automate the installation; S2. Use Ambari to install, manage and monitor the big data platform software. Ambari Server notifies AmbariAgent to install the corresponding big data platform software. AmbariAgent periodically sends the status of each big data platform software module of each host to Ambari Server and displays it to the user on the Ambari GUI interface. S3. Use Ambari to install, manage and monitor Flink, a customized integration service for Ambari. Create a customized integration service Flink deployed through Ambari. According to the development template requirements of Ambari's mpack package, create an Ambari mpack package for Flink's yarn-based installation and deployment. The mpack package includes scripts for installing, starting, stopping, uninstalling, security authentication and status checking Flink in Ambari based on yarn mode, version information, and Flink's application access link configuration file and Flink service configuration parameter file. S4. Manage and schedule the real-time computing service Flink through Yarn.

2. According to the deployment method of Flink, a real-time computing service for a big data platform based on Yarn, Features: The basic environment tools include mysql database, jdk and nginx.

3. According to the deployment method of Flink, a real-time computing service for a big data platform based on Yarn, Features: In step S4, Flink is started through the Yarn-session command. The Yarn client checks whether the requested resources are available, uploads the Flink-related jar packages and configurations to hdfs, and applies to the RM for a Yarn container to start the AM. The container is started in the Yarn node agent on the specific host to run Flink.