A Flink integration method and system based on TBDS Hadoop

By modifying the configuration and authentication module of Flink Client and adding security authentication for TBDS Hadoop, the problem of Flink being unable to run in the TBDS Hadoop cloud environment was solved, enabling the normal operation of Flink and reducing the resources required for deployment.

CN112558995BActive Publication Date: 2024-09-06ENYIKE (BEIJING) DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011549744.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2024-09-06
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

Flink open source components cannot run in Tencent Cloud's TBDS Hadoop environment, and there is a lack of effective solutions to achieve its normal operation in this environment.

Method used

By modifying the configuration file and verification part of Flink Client, add the security authentication module of TBDS Hadoop cloud environment, compile and generate the version jar package, and store it in the Flink lib directory, configure the authentication configuration of TBDS Hadoop, and determine and process the authentication type to achieve Normal submission of Flink tasks.

Benefits of technology

Without affecting the existing security certification, it solves the problem that Flink cannot run in the TBDS Hadoop cloud environment, realizes the normal operation of Flink in the TBDS Hadoop cloud environment, and reduces the time required for the deployment of software products built based on Flink. Additional machine resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112558995B
    Figure CN112558995B
Patent Text Reader

Abstract

The present application relates to a Flink integration method and system based on TBDS Hadoop, wherein the method includes: adding configuration parameters and compatibility modification to the configuration file and verification part of the Flink Client respectively; installing the Flink Client on a TBDS Hadoop Client, and configuring the installation authentication configuration in the environment variables of the TBDS Hadoop Client; compiling a Flink-shaded according to the current version of TBDS Hadoop and generating a corresponding version jar package, and storing the version jar package in the Flink lib directory; configuring the authentication configuration of TBDS Hadoop in the configuration file; the Flink Client submits the Flink task, and according to the above steps, the Flink task runs normally on the TBDS Hadoop. By modifying the configuration file and verification part of the Flink Client, the security authentication of the TBDS Hadoop cloud environment is added without affecting the existing security authentication, which solves the problem that Flink cannot run normally in the TBDS Hadoop cloud environment, and reduces the additional machine resources required for the deployment of software products built on Flink.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data operation technology, and in particular to a Flink integration method and system based on TBDS Hadoop. Background Art

[0002] Some customers have purchased related Tencent Cloud resources (TBDS Hadoop) in their environment. In order to avoid additional costs, they hope to deploy the product to this environment. They need to adapt and integrate the related technologies involved in the product to the third-party Tencent Cloud (TBDS Hadoop) environment. The Flink open source components used in the product cannot run in the TBDS cloud environment.

[0003] Currently, no effective solution has been proposed for the problem that related technologies cannot operate. Summary of the invention

[0004] The embodiment of the present application provides a Flink integration method and system based on TBDS Hadoop. In order to solve the technical problem that the exclusive right cannot be run in the related technology, it is necessary to modify the Flink security authentication module code and add a TBDS Hadoop cloud environment security authentication module without affecting the existing security authentication.

[0005] In a first aspect, an embodiment of the present application provides a Flink integration method based on TBDS Hadoop, comprising the following steps:

[0006] In the Flink configuration step, add configuration parameters and make compatible modifications to the configuration file and verification part of the Flink Client.

[0007] Software installation step: install the Flink Client on a TBDS Hadoop Client and configure the installation authentication configuration in the environment variables of the TBDS Hadoop Client;

[0008] Version jar package storage step: compile Flink-shaded according to the current version of TBDS Hadoop and generate the corresponding version jar package, and store the version jar package in the Flink lib directory;

[0009] An authentication configuration step, configuring the authentication configuration of TBDS Hadoop in the configuration file;

[0010] Task submission step: According to the above steps, the Flink Client submits the Flink task.

[0011] In some embodiments, the Flink configuration steps specifically include:

[0012] Configuration item parameter configuration step, adding the configuration parameters required for tbds security authentication in the configuration file, and adding corresponding configuration item variables in Documentation and SecurityOptions classes;

[0013] The authentication type determination method adds steps and adds the isTBDS method and isKerberos method in the HadoopUtils class to determine the authentication type.

[0014] In some embodiments, the configuration item parameter configuration step specifically includes:

[0015] Add the three configuration parameters required for TBDS security authentication to the configuration file, add TBDS security configuration item constants to the Documentation class, the TBDS security configuration item constants correspond to the configuration parameters, add TBDS security configuration item variables required by TBDS to the SecurityOptions class, and read the variable values ​​corresponding to the configuration parameters accordingly.

[0016] In some embodiments, the authentication configuration step specifically includes:

[0017] An authentication type determination step, determining the authentication type according to the isTBDS method and the isKerberos method;

[0018] TBDS security authentication step: when it is determined that the current authentication type is TBDS, ordinary authentication is entered, and the configuration parameters in the configuration file are added to the Hadoop configuration obtained by the Flink Client;

[0019] Kerberos security authentication step: when the authentication type is Kerberos, enter security authentication, and verify the Kerberos authentication code through the HadoopModule authentication class and the YarnClusterDescriptor submission class.

[0020] In some embodiments, the TBDS security authentication step specifically includes the following steps:

[0021] In the HadoopUtils class, the judgment of the isTBDS method is added to the end of the getHadoopConfiguration method. When the authentication type is TBDS, the configuration parameters are added to the current Hadoop configuration.

[0022] In some embodiments, the Kerberos security authentication step includes:

[0023] When the current authentication type is determined to be Kerberos, the install method of the HadoopModule authentication class executes relevant authentication and verifies some of the Kerberos codes;

[0024] In the process of Flink Client executing Flink task submission, the Deployinternal method and startAppMaster method of the YarnClusterDescriptor submission class are used to verify the Kerberos code.

[0025] In a second aspect, an embodiment of the present application provides a Flink integration system based on TBDS Hadoop, applying the method described in the first aspect above, including:

[0026] The Flink configuration module adds configuration parameters and makes compatible modifications to the configuration file and verification part of the Flink Client.

[0027] A software installation module installs the Flink Client on a TBDS Hadoop Client and configures the installation authentication configuration in the environment variables of the TBDS Hadoop Client;

[0028] Version jar package storage step: compile Flink-shaded according to the current version of TBDS Hadoop and generate the corresponding version jar package, and store the version jar package in the Flink lib directory;

[0029] An authentication configuration module, which configures the authentication configuration of TBDS Hadoop in the configuration file;

[0030] Task submission module: According to the above steps, the Flink Client submits the Flink task.

[0031] In some embodiments, the Flink configuration module specifically includes:

[0032] A configuration item parameter configuration unit, which adds the configuration parameters required for tbds security authentication in the configuration file, and adds corresponding configuration item variables in the Documentation and SecurityOptions classes;

[0033] The authentication type judgment method adds a unit, and adds the isTBDS method and isKerberos method in the HadoopUtils class to judge the authentication type.

[0034] In some embodiments, the configuration item parameter configuration unit specifically includes:

[0035] Add the three configuration parameters required for TBDS security authentication to the configuration file, add TBDS security configuration item constants to the Documentation class, the TBDS security configuration item constants correspond to the configuration parameters, add TBDS security configuration item variables required by TBDS to the SecurityOptions class, and read the variable values ​​corresponding to the configuration parameters accordingly.

[0036] In some embodiments, the authentication configuration module specifically includes:

[0037] An authentication type determination unit, which determines the authentication type according to the isTBDS method and the isKerberos method;

[0038] A TBDS security authentication unit, when determining that the current authentication type is TBDS, enters into common authentication, and adds the configuration parameters in the configuration file to the Hadoop configuration obtained by the Flink Client;

[0039] The Kerberos security authentication unit, when the authentication type is Kerberos, enters into security authentication, and verifies the Kerberos authentication code through the HadoopModule authentication class and the YarnClusterDescriptor submission class.

[0040] Compared with the related art, the embodiment of the present application provides a Flink integration method and system based on TBDS Hadoop. By modifying the configuration file and verification part of the Flink Client, the security authentication of the TBDS Hadoop cloud environment is added without affecting the existing security authentication. This solves the problem that Flink cannot run normally in the TBDS Hadoop cloud environment, realizes the operation of Flink in the TBDS Hadoop cloud environment, provides normal services, and reduces the additional machine resources required for the deployment of software products built on Flink.

[0041] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0043] Figure 1 is a flow chart of a Flink integration method based on TBDS Hadoop according to an embodiment of the present application;

[0044] Figure 2 is a flowchart of the Flink configuration steps according to an embodiment of the present application;

[0045] Figure 3 is a flowchart of authentication configuration steps according to an embodiment of the present application;

[0046] Figure 4 is a flow chart of a Flink integration method based on TBDS Hadoop according to a preferred embodiment of the present application;

[0047] Figure 5 It is a structural block diagram of the Flink integrated system based on TBDS Hadoop according to an embodiment of the present application. Description of the drawings:

[0049] Flink configuration module 1; software installation module 2; version jar package storage step 3;

[0050] Authentication configuration module 4; Task submission module 5; Configuration item parameter configuration unit 11;

[0051] Authentication type determination method adding unit 12; Authentication type determination unit 41;

[0052] TBDS security authentication unit 42; Kerberos security authentication unit 43;

[0053] Flink integrated system based on TBDSHadoop100. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0055] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0056] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0057] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0058] This embodiment provides a Flink integration method based on TBDS Hadoop. Figure 1 is a flow chart of the Flink integration method based on TBDS Hadoop according to an embodiment of the present application, such as Figure 1 As shown, the process includes the following steps:

[0059] In Flink configuration step S1, configuration parameters are added and compatible modifications are made to the configuration file and verification part of the Flink Client.

[0060] Software installation step S2: Install Flink Client on a TBDS Hadoop Client and configure the installation authentication configuration in the environment variables of the TBDSHadoop Client.

[0061] Version jar package storage step S3: compile a Flink-shaded according to the current version of TBDS Hadoop and generate a corresponding version jar package, and store the version jar package in the Flinklib directory;

[0062] Authentication configuration step S4, configure the authentication configuration of TBDS Hadoop in the configuration file; authentication configuration parameters

[0063] Task submission step S5: Task submission step. According to the above steps, the Flink Client submits the Flink task.

[0064] In actual application, first, add configuration parameters to the configuration file and make compatible modifications. After the above changes, compile Flink by yourself and install Flink on the TBDS Hadoop Client machine. Configure the three installation authentication configurations of TBDS in the environment variables of the TBDS HadoopClient (that is, the Hadoop client of TBDS) machine for interactive authentication between the command line and the Hadoop service.

[0065] Secondly, you need to compile the Flink-shaded project file to generate a jar package that depends on the current TBDS Hadoop version and put it in the Flink lib directory for interaction between Flink and TBDS Hadoop.

[0066] Again, configure the three authentication configurations of TBDS Hadoop in the Flink-conf.yaml file.

[0067] Finally, after the above process is completed, the Flink task can be submitted normally, thus completing the integration of Flink and TBDSHadoop.

[0068] After submission, FlinkAM provides a REST interface to receive Flink task submissions from Flink Client, start JM and submit Flink tasks, and run WebUI at the same time, so that Flink tasks can run normally on TBDS Hadoop.

[0069] Through the above steps, the configuration file and verification part of Flink Client are modified, and the security certification of TBDS Hadoop cloud environment is added without affecting the existing security certification. The problem that Flink cannot run normally in the TBDS Hadoop cloud environment is solved, and Flink can run in the TBDS Hadoop cloud environment, provide normal services, and reduce the additional machine resources required for the deployment of software products built on Flink.

[0070] Figure 2 is a flowchart of the Flink configuration steps according to an embodiment of the present application, such as Figure 2 As shown, in some embodiments, the Flink configuration step S1 specifically includes:

[0071] Configuration item parameter configuration step S11, adding the configuration parameters required for tbds security authentication in the configuration file, and adding corresponding configuration item variables in the Documentation and SecurityOptions classes;

[0072] The authentication type determination method adds step S12, and adds the isTBDS method and the isKerberos method in the HadoopUtils class to determine the authentication type.

[0073] In actual applications, the TBDS security configuration item constants correspond to the three configuration constants in the conf file and read the names of the configuration parameters in the configuration file.

[0074] The SecurityOptions class is a class for adding security authentication. To add the tbds authentication type, you need to mark the tbds type in the TBDS security configuration item constant in the documentation class.

[0075] The HadoopUtils class is a helper class for the interaction between Flink and Hadoop, and is used to determine the authentication type of Hadoop.

[0076] In some embodiments, the configuration item parameter configuration step S11 specifically includes:

[0077] Add the three configuration parameters required for TBDS security authentication to the configuration file, add TBDS security configuration item constants to the Documentation class, and the TBDS security configuration item constants correspond to the configuration parameters. Add the TBDS security configuration item variables required by TBDS to the SecurityOptions class, and read the variable values ​​of the corresponding configuration parameters accordingly.

[0078] It should be noted that the configuration parameters can be set to the authentication user name, the authentication user security period and the security authentication authorization code.

[0079] Figure 3 is a flowchart of the authentication configuration steps according to an embodiment of the present application, such as Figure 3 As shown, in some embodiments, the authentication configuration step S4 specifically includes:

[0080] Authentication type determination step S41, determining the authentication type according to the isTBDS method and the isKerberos method;

[0081] TBDS security authentication step S42: when it is determined that the current authentication type is TBDS, ordinary authentication is entered, and the configuration parameters in the configuration file are added to the Hadoop configuration obtained by the Flink Client;

[0082] Kerberos security authentication step S43, when the authentication type is Kerberos, enter the security authentication, and verify the Kerberos authentication code through the HadoopModule authentication class and the YarnClusterDescriptor submission class.

[0083] In some embodiments, the TBDS security authentication step S42 specifically includes the following steps:

[0084] In the HadoopUtils class, add the isTBDS method to the end of the getHadoopConfiguration method. When the authentication type is TBDS, add the configuration parameters to the current Hadoop configuration.

[0085] In actual applications, when the authentication type is determined to be TBDS, the TBDS configuration parameters are read from the Flink configuration and the corresponding configuration parameter values ​​are added to the current Hadoop configuration.

[0086] In some embodiments, the Kerberos security authentication step S43 includes:

[0087] When the current authentication type is determined to be Kerberos, the install method of the HadoopModule authentication class executes relevant authentication and verifies some of the Kerberos codes;

[0088] In the process of Flink Client executing Flink task submission, the Deployinternal method and startAppMaster method of the YarnClusterDescriptor submission class are used to verify the Kerberos code.

[0089] It should be noted that, in the embodiment of the selection between TBDS authentication and Kerberos authentication, only two authentication methods, TBDS authentication and Kerberos authentication, are mentioned, but the present invention is not limited thereto.

[0090] The HadoopModule class is the Flink security authentication execution class. The relevant authentication is performed in the install method of this class. Compatibility modification is required here. First, you need to determine the authentication type. If it is Kerberos, security authentication is required. Add the isKerberos judgment to perform Kerberos authentication. Otherwise, it is ordinary authentication. For example, when TBDS Hadoop belongs to ordinary authentication, there is no need to add additional authentication code. You only need to add configuration parameters in the hadoop configuration to complete the acquisition of authorized users for operation.

[0091] When the authentication method is Kerberos, since Kerberos authentication is bound to the Flink task submission process, this part needs to be modified during the authentication submission process to verify the Kerberos authentication code in the deployInternal and startAppMaster methods of the submission class YarnClusterDescriptor.

[0092] The embodiments of the present application are described and illustrated below through preferred embodiments.

[0093] Figure 4 It is a flowchart of the Flink integration method based on TBDS Hadoop according to the preferred embodiment of the present application.

[0094] S401, first change the Flink verification part:

[0095] S4011, add the three configuration parameters required for TBDS authentication in the flink-conf.yaml configuration file, add the TBDS security configuration item constants in the org.apache.flink.annotation.docs.Documentation class, and add the configuration item variables required by TBDS in the org.apache.flink.configuration.SecurityOptions class to read the corresponding configured variable values ​​in the flink-conf.yaml file.

[0096] S4012, add isTBDS and isKerberos methods in org.apache.flink.runtime.util.HadoopUtils class to determine the authentication type;

[0097] S40131, add the isTBDS check at the end of the getHadoopConfiguration method in the org.apache.flink.runtime.util.HadoopUtils class. If the authentication type is TBDS, add the TBDS configuration item from the flink configuration (read the value of the corresponding configuration item from the document file) to the current Hadoop configuration.

[0098] S401321, org.apache.flink.runtime.security.modules.HadoopModule class is the Flink security authentication execution class. Relevant authentication is performed in the install method of this class. Compatibility modification is required here. When it is judged that the Kerberos authentication type is required, when security authentication is required, the isKerberos judgment is added to perform Kerbero authentication, otherwise it is ordinary authentication.

[0099] It should be noted that when TBDSHadoop belongs to ordinary authentication, there is no need to add additional authentication codes. You only need to add configuration items in the hadoop configuration to complete the acquisition of authorized users for operations.

[0100] S401322: If the current authentication type is determined to be Kerberos, the Kerberos authentication code is executed in the deployInternal and startAppMaster methods of the submission class org.apache.flink.yarn.YarnClusterDescriptor.

[0101] S402, configure and install Flink Client

[0102] After making the above changes, compile flink by yourself and install flink on the TBDS Hadoop Client machine. You also need to configure the three TBDS installation authentication configurations in the environment variables (here are the local command executions required for TBDS Hadoop authentication);

[0103] In addition, you need to compile the jar package of the TBDS Hadoop version that flink-shaded depends on and put it in the flink lib directory;

[0104] Configure the configuration parameters for TBDS Hadoop authentication in S401 in the flink-conf.yaml configuration file;

[0105] After the above process is completed, you can submit the Flink task normally, and the integration of Flink and TBDS Hadoop is completed.

[0106] The present invention does not improve the submission process, which is prior art and will not be described in detail here.

[0107] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0108] This embodiment also provides a Flink integration system based on TBDS Hadoop, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the terms "module", "unit", "subunit", etc. can implement a combination of software and / or hardware for a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0109] Figure 5 is a structural block diagram of a Flink integrated system 100 based on TBDS Hadoop according to an embodiment of the present application, such as Figure 5 As shown, the system includes:

[0110] Flink configuration module 1, adds configuration parameters and makes compatible modifications to the configuration file and verification part of the Flink Client.

[0111] Software installation module 2, install Flink Client on a TBDS Hadoop Client, and configure the installation authentication configuration in the environment variables of the TBDSHadoop Client;

[0112] Version jar package storage step 3, compile Flink-shaded according to the current version of TBDS Hadoop and generate the corresponding version jar package, and store the version jar package in the Flinklib directory;

[0113] Authentication configuration module 4, configures the authentication configuration of TBDS Hadoop in the configuration file;

[0114] Task submission module 5: According to the above steps, Flink Client submits the Flink task.

[0115] In some embodiments, the Flink configuration module 1 specifically includes:

[0116] Configuration item parameter configuration unit 11, adds configuration parameters required for tbds security authentication in the configuration file, and adds corresponding configuration item variables in Documentation and SecurityOptions classes;

[0117] The authentication type determination method adds a unit 12, which adds an isTBDS method and an isKerberos method in the HadoopUtils class to determine the authentication type.

[0118] In some embodiments, the configuration item parameter configuration unit 11 specifically includes:

[0119] Add the three configuration parameters required for TBDS security authentication to the configuration file, add TBDS security configuration item constants to the Documentation class, and the TBDS security configuration item constants correspond to the configuration parameters. Add the TBDS security configuration item variables required by TBDS to the SecurityOptions class, and read the variable values ​​of the corresponding configuration parameters accordingly.

[0120] The configuration parameters are set as authentication user name, authentication user security period, and security authentication authorization code.

[0121] In some embodiments, the authentication configuration module 4 specifically includes:

[0122] An authentication type determination unit 41 determines the authentication type according to the isTBDS method and the isKerberos method;

[0123] The TBDS security authentication unit 42, when determining that the current authentication type is TBDS, enters the common authentication and adds the configuration parameters in the configuration file to the Hadoop configuration obtained by the FlinkClient;

[0124] The Kerberos security authentication unit 43, when the authentication type is Kerberos, enters into security authentication, and verifies the Kerberos authentication code through the HadoopModule authentication class and the YarnClusterDescriptor submission class.

[0125] In actual applications, the TBDS security authentication unit 42 adds the judgment of the isTBDS method at the end of the getHadoopConfiguration method in the HadoopUtils class, and when the authentication type is TBDS, adds the configuration parameters to the current Hadoop configuration.

[0126] The Kerberos security authentication unit 43 performs relevant authentication in the install method of the HadoopModule authentication class and verifies part of the Kerberos code;

[0127] In the process of FlinkClient executing Flink task submission, the Deployinternal method and startAppMaster method of the YarnClusterDescriptor submission class are used to verify some Kerberos codes.

[0128] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0130] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for integrating Flink with TBDS Hadoop, characterized in that: The following steps are involved: In the Flink configuration step, add configuration parameters and make compatible modifications to the configuration file and verification part of the Flink Client. Software installation step: install the Flink Client on a TBDS Hadoop Client, and configure the TBDS installation authentication configuration in the environment variables of the TBDSHadoop Client; Version jar package storage step: compile Flink-shaded according to the current version of TBDS Hadoop and generate the corresponding version jar package, and store the version jar package in the Flink lib directory; An authentication configuration step, configuring the authentication configuration of TBDS Hadoop in the configuration file; Task submission step: According to the above steps, the Flink Client submits the Flink task; The Flink configuration steps specifically include: Configuration item parameter configuration step, adding the configuration parameters required for tbds security authentication in the configuration file, and adding corresponding configuration item variables in Documentation and SecurityOptions classes; The authentication type determination method adds steps, and adds the isTBDS method and isKerberos method in the HadoopUtils class to determine the authentication type; The authentication configuration step specifically includes: An authentication type determination step, determining the authentication type according to the isTBDS method and the isKerberos method; TBDS security authentication step: when it is determined that the current authentication type is TBDS, ordinary authentication is entered, and the configuration parameters in the configuration file are added to the Hadoop configuration obtained by the Flink Client; Kerberos security authentication step: when the authentication type is Kerberos, enter security authentication and verify the Kerberos authentication code through the HadoopModule authentication class and the YarnClusterDescriptor submission class; The TBDS security authentication steps specifically include: In the HadoopUtils class, add the judgment of the isTBDS method at the end of the getHadoopConfiguration method. When the authentication type is TBDS, add the configuration parameters to the current Hadoop configuration. The Kerberos security authentication steps specifically include: When the current authentication type is determined to be Kerberos, the install method of the HadoopModule authentication class executes the relevant authentication and verifies some of the Kerberos codes; In the process of Flink Client executing Flink task submission, the Deployinternal method and startAppMaster method of the YarnClusterDescriptor submission class are used to verify the Kerberos code.

2. The Flink integration method based on TBDS Hadoop according to claim 1, characterized in that: The configuration item parameter configuration steps specifically include: Add the three configuration parameters required for TBDS security authentication to the configuration file, add TBDS security configuration item constants to the Documentation class, the TBDS security configuration item constants correspond to the configuration parameters, add TBDS security configuration item variables required by TBDS to the SecurityOptions class, and read the variable values ​​corresponding to the configuration parameters accordingly.

3. A Flink integrated system based on TBDS Hadoop, applying the method described in any one of claims 1-2 above, characterized in that: include: The Flink configuration module adds configuration parameters and makes compatible modifications to the configuration file and verification part of the Flink Client. A software installation module installs the Flink Client on a TBDS Hadoop Client and configures the installation authentication configuration in the environment variables of the TBDS Hadoop Client; Version jar package storage step: compile Flink-shaded according to the current version of TBDS Hadoop and generate the corresponding version jar package, and store the version jar package in the Flink lib directory; An authentication configuration module, which configures the authentication configuration of TBDS Hadoop in the configuration file; Task submission module: According to the above steps, the Flink Client submits the Flink task; The Flink configuration module specifically includes: A configuration item parameter configuration unit, which adds the configuration parameters required for tbds security authentication in the configuration file, and adds corresponding configuration item variables in the Documentation and SecurityOptions classes; The authentication type determination method adds a unit, and adds the isTBDS method and isKerberos method in the HadoopUtils class to determine the authentication type; The authentication configuration module specifically includes: An authentication type determination unit, which determines the authentication type according to the isTBDS method and the isKerberos method; The TBDS security authentication unit, when determining that the current authentication type is TBDS, enters into common authentication, and adds the configuration parameters in the configuration file to the Hadoop configuration obtained by the Flink Client; Kerberos security authentication unit, when the authentication type is Kerberos, enters security authentication, and verifies the Kerberos authentication code through the HadoopModule authentication class and the YarnClusterDescriptor submission class; The TBDS security authentication unit specifically includes: In the HadoopUtils class, add the judgment of the isTBDS method at the end of the getHadoopConfiguration method. When the authentication type is TBDS, add the configuration parameters to the current Hadoop configuration. The Kerberos security authentication unit specifically includes: When the current authentication type is determined to be Kerberos, the install method of the HadoopModule authentication class executes the relevant authentication and verifies some of the Kerberos codes; In the process of Flink Client executing Flink task submission, the Deployinternal method and startAppMaster method of the YarnClusterDescriptor submission class are used to verify the Kerberos code.

4. The Flink integrated system based on TBDS Hadoop according to claim 3, characterized in that: The configuration item parameter configuration unit specifically includes: Add the three configuration parameters required for TBDS security authentication to the configuration file, add TBDS security configuration item constants to the Documentation class, the TBDS security configuration item constants correspond to the configuration parameters, add TBDS security configuration item variables required by TBDS to the SecurityOptions class, and read the variable values ​​corresponding to the configuration parameters accordingly.