System for executing jobs, method and device for testing batch jobs
By combining the scheduling control layer and the Oozie execution layer, and utilizing the task scheduling management platform and Python common scheduling scripts, the operational complexity and availability issues of Oozie in large-scale job scheduling are resolved. This enables rapid deployment and standardized configuration, meeting the project requirements for large-scale job scheduling.
Patent Information
- Application Number
- CN202110615698.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-02
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-06-02
AI Technical Summary
The Oozie scheduling framework lacks overall control logic for large-scale job scheduling, allowing users to control the relationships and states between jobs. Its high-availability deployment is unstable, its operation and maintenance are complex, its graphical interface is unfriendly, and its job rollback operation is incomplete, making it unable to meet the project requirements for large-scale job scheduling.
The system employs a scheduling control layer to schedule and manage jobs, combined with the Oozie execution layer to execute jobs. It uses a task scheduling management platform to control the relationships and status between jobs, supports high-availability deployment and distributed architecture, uses a common Python scheduling script for scheduling, and integrates with an adaptation layer to achieve seamless integration.
It enables rapid deployment and management of large-scale job scheduling, solves the problem of operational complexity, provides intuitive process monitoring and standardized configuration, supports high availability and load balancing, and meets the project requirements of large-scale job scheduling.
Smart Images

Figure CN113220438B
Abstract
Description
Technical Field
[0001] The present application relates to the field of job scheduling, and in particular, to a system for executing jobs, a method and device for testing batch jobs, a computer-readable storage medium, and a processor. Background Art
[0002] The Oozie scheduling framework is widely used in the Hadoop data processing ecosystem, but it faces the following problems in projects: lack of overall control logic for users to control the relationship and status between jobs; lack of high-availability deployment; expected instability such as job flow relationship management and complex operation and maintenance; unfriendly graphical interface; and imperfect job rollback operation function.
[0003] For large-scale job scheduling project requirements, at least the following features are required:
[0004] (1) Rigorous and intuitive process: The DAG flowchart can be used to intuitively monitor jobs and upstream and downstream dependency triggering situations, and manual operation and maintenance operations such as resuming and redoing jobs can be completed quickly;
[0005] (2) Standardized configuration: The process is convenient and fast for job configuration. Job steps, job dependencies, and job triggers can all be configured through the front-end interface, and the configuration process is clear and unambiguous.
[0006] (3) Centralized deployment: Job scripts can be uploaded through the front-end interface and deployed to each ETL server in the cluster with one click; parameterized public scheduling script configuration is provided to enable the reuse of public scripts; templates are used to batch upload jobs and job dependencies and trigger relationships to reduce the workload of launching large batches of jobs and ensure the correctness of relationships;
[0007] (4) Distributed architecture: Deploy multiple ETL servers to form a scheduling cluster, which can be managed through a unified front-end interface, while achieving job load balancing, high availability and linear horizontal expansion capabilities;
[0008] Oozie does not meet any of the above four points and needs to invest a lot of resources in development and maintenance work such as self-edited overall control, daily maintenance, configuration deployment, and visualization. Summary of the invention
[0009] The main purpose of this application is to provide a system for executing jobs, a method and device for testing batch jobs, a computer-readable storage medium and a processor to solve the problem in the prior art that Oozie cannot meet the project requirements of large-scale job scheduling.
[0010] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a system for executing jobs is provided, including: a scheduling control layer, which is used to schedule and manage jobs to be executed; and a job execution layer, which exchanges information with the scheduling control layer to execute the jobs to be executed.
[0011] Optionally, the scheduling control layer includes a task scheduling management platform, which is used to schedule and manage the jobs to be executed, and the job execution layer includes oozie, which is used to execute the jobs to be executed.
[0012] Optionally, the system further includes an Oozie client, and information is exchanged between the task scheduling management platform and Oozie via the Oozie client.
[0013] Optionally, the job execution layer also includes an oozie server, and the oozie client forwards the received scheduling information sent by the task scheduling management platform to the oozie server.
[0014] Optionally, the task scheduling management platform includes a management server, a management repository, a management database and a management monitoring interface, the management server and the management database exchange information, and the management monitoring interface exchanges information with the management server and the management repository respectively.
[0015] Optionally, the scheduling control layer uses a python public scheduling script to implement the scheduling of the jobs to be executed.
[0016] According to another aspect of the present application, a method for testing batch jobs is provided, including: configuring all jobs; testing each of the jobs individually; and testing the entire process, wherein the entire process includes at least one sub-process, and each of the sub-processes includes multiple jobs.
[0017] Optionally, each of the jobs is tested separately, including: generating a job script corresponding to each of the jobs; and testing the correctness of each of the job scripts.
[0018] Optionally, testing the entire process includes: generating an empty script; and testing the entire process using the empty script.
[0019] Optionally, after testing the entire process, the method further includes: exporting the jobs and sub-processes that have passed the test and putting them online.
[0020] According to another aspect of the present application, a device for testing batch jobs is provided, including: a configuration unit for configuring all jobs; a first testing unit for testing each of the jobs individually; and a second testing unit for testing the entire process, wherein the entire process includes at least one sub-process, and each of the sub-process includes multiple jobs.
[0021] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods for testing batch jobs.
[0022] According to another aspect of the present application, a processor is provided, wherein the processor is used to run a program, wherein the program executes any one of the methods for testing batch jobs when running.
[0023] By applying the technical solution of this application, the scheduling control layer is used to schedule and manage the jobs to be executed, and the job execution layer is used to execute the jobs to be executed, that is, the execution and scheduling of the jobs are separated, which can meet the project requirements of large-scale job scheduling. It solves the current organizational problems of large-scale job development, configuration and testing, and realizes rapid deployment and launch. It can realize the standardization and standardization of scheduling development. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0025] Figure 1 A schematic diagram of a system for executing a job according to an embodiment of the present application is shown;
[0026] Figure 2 A schematic diagram of an integrated adaptation layer according to an embodiment of the present application is shown;
[0027] Figure 3 A flow chart of a method for testing batch jobs according to an embodiment of the present application is shown;
[0028] Figure 4 A schematic diagram of a device for testing batch jobs according to an embodiment of the present application is shown;
[0029] Figure 5 A specific batch job development configuration test flow chart according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be intermediate elements. Moreover, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element through a third element.
[0034] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0035] Oozie is an open source framework based on a workflow engine. It is an open source workflow scheduling engine for the Hadoop platform and is used to manage Hadoop jobs.
[0036] As introduced in the background technology, Oozie in the prior art cannot meet the project requirements of large-scale job scheduling. In order to solve the problem that Oozie cannot meet the project requirements of large-scale job scheduling, the embodiments of the present application provide a system for executing jobs, a method for testing batch jobs, an apparatus, a computer-readable storage medium and a processor.
[0037] A typical embodiment of the present application provides a system for executing a job. Figure 1As shown, including:
[0038] The scheduling control layer is used to schedule and manage jobs to be executed;
[0039] The job execution layer exchanges information with the above-mentioned scheduling control layer to execute the above-mentioned jobs to be executed.
[0040] In the above solution, the scheduling control layer is used to schedule and manage the pending jobs, and the job execution layer is used to execute the pending jobs, that is, the execution and scheduling of jobs are separated, which can meet the project requirements of large-scale job scheduling. It solves the current organizational problems of large-scale job development, configuration and testing, and realizes rapid deployment and launch. It can realize the normalization and standardization of scheduling development.
[0041] In one embodiment of the present application, the above-mentioned scheduling control layer includes a task scheduling management platform, and the above-mentioned task scheduling management platform is used to schedule and manage the above-mentioned jobs to be executed. The above-mentioned job execution layer includes Oozie, and the above-mentioned Oozie is used to execute the above-mentioned jobs to be executed. Oozie itself can realize the scheduling and management of jobs, but it is not suitable for the project requirements of large-scale job scheduling. It lacks the overall control logic user to control the relationship and status between jobs; lacks high-availability deployment; and the job flow relationship management and operation and maintenance are complex. The task scheduling management platform in the present application can realize the control of the relationship and status between jobs, has the characteristics of high-availability deployment, and supports distributed processing. It can realize job flow relationship management and has simpler operation and maintenance. That is, the task scheduling management platform solves the problem that Oozie cannot meet the scheduling and management of large jobs, and separates the scheduling and execution of jobs between the task scheduling management platform and Oozie, realizes batch processing of large-scale jobs, and ensures high processing efficiency.
[0042] Specifically, the task scheduling management platform has four major features: rigorous and intuitive process, standardized configuration, centralized deployment and distributed architecture. It also has the characteristics of high availability, load balancing, high concurrency and low resource usage.
[0043] Specifically, Oozie is responsible for the job execution function. As a member of the Hadoop big data ecosystem, it has a rich and mature job submission interface.
[0044] Specifically, the above-mentioned task scheduling management platform replaces the Oozie master control logic and seamlessly integrates the data processing job code developed with the Oozie scheduling framework. At the same time, based on the high availability of the task scheduling management platform, Oozie is transformed to achieve high availability of the overall solution.
[0045] Specifically, the task scheduling management platform does not have pre-support for various components in the Hadoop ecosystem, such as Hive, Spark, HBase, etc. The cost of job code development is high, and it does not have the advantage of the built-in development framework of Oozie. Therefore, the architecture combining the task scheduling management platform and Oozie is adopted to realize the processing of large-scale data.
[0046] In one embodiment of the present application, the system further includes an Oozie client, and the task scheduling management platform and Oozie exchange information through the Oozie client. The specific implementation method is to deploy the Oozie client program, call the command method to interact with the Oozie server, and encapsulate it as a Python program, which is executed by the task scheduling management platform.
[0047] In one embodiment of the present application, the above-mentioned job execution layer also includes an oozie server, and the above-mentioned oozie client forwards the received scheduling information sent by the task scheduling management platform to the above-mentioned oozie server.
[0048] In one embodiment of the present application, Figure 1 VIP+keepalive in the above refers to the virtual IP and heartbeat retention. Its main function is to ensure the survival status of multiple hosts through the heartbeat retention program detection, disconnect the failed host that lost the heartbeat in time, and use the only virtual IP to access multiple hosts at the same time, so as to achieve high availability without external perception of internal failures.
[0049] In one embodiment of the present application, the task scheduling management platform includes a management server, a management repository, a management database, and a management monitoring interface. The management server and the management database exchange information, and the management monitoring interface exchanges information with the management server and the management repository, respectively. The scheduling control is taken over by the management server, and the control functions such as job dependency detection, timed triggering, daily and monthly switching, and failed redo are separated from Oozie. The management server has mature scheduling control and has been tested in practice in big data platform projects. The management monitoring interface has good visualization effects, and can easily create new jobs and steps, set dependencies, timed triggers, configure templates in batches, monitor job flow charts, etc. However, Oozie itself cannot achieve visualization.
[0050] Preferably, the high availability of the system executing the job can be ensured by:
[0051] 1) Multiple management servers can be deployed in parallel to achieve high availability of the scheduling control layer through a shared metadata database.
[0052] 2) Supports load balancing based on the number of jobs, processor / memory load, etc.
[0053] 3) Support adding or reducing management servers to facilitate the scheduling of cluster node expansion. The management end detects the agent process, automatically discovers management and assigns job tasks, and automatically shields and isolates when some management servers fail.
[0054] 4) Deploy multiple Oozie servers, and make sure that the multiple Oozie servers are independent of each other.
[0055] 5) Multiple Oozie servers are managed by virtual IP and heartbeat detection services. Oozie clients access the virtual IP to achieve high availability of the job execution layer.
[0056] In one embodiment of the present application, the above-mentioned scheduling control layer uses a python public scheduling script to implement the scheduling of the above-mentioned jobs to be executed. The python public scheduling script can directly reuse the job code developed by the project team based on oozie, greatly reducing the workload of scheduling migration. The python public scheduling script is set in the integrated adaptation layer, such as Figure 2 As shown, the calling objects include preinput, input, output, wf_job, and datadown jobs, and the corresponding adaptation layer development implementation includes Figure 2 Scheduling scripts for various jobs in Oozie. A global file receiving trigger service is designed to adapt to file receiving triggers. By integrating the adaptation layer and using public scheduling scripts, the project team can seamlessly integrate and call the job code developed based on Oozie.
[0057] According to an embodiment of the present application, a method for testing a batch job is provided.
[0058] Figure 3 1 is a flow chart of a method for testing batch jobs according to an embodiment of the present application. Figure 3 As shown, the method comprises the following steps:
[0059] Step S101, configuring all jobs;
[0060] Step S102, testing each of the above operations separately;
[0061] Step S103, testing the entire process, wherein the entire process includes at least one sub-process, and each sub-process includes a plurality of the above operations.
[0062] Specifically, using Figure 1The system shown tests batch jobs, configures all jobs using the scheduling control layer, tests each of the above jobs individually using the method of checking the correctness of the data processing logic of a single data processing job script, and tests the entire process by simulating daily batch runs of a group of empty job scripts with full dependencies and full timelines.
[0063] In the above solution, all jobs are configured first, then each job is tested individually, and finally the entire process is tested, which can realize rapid testing of batch jobs.
[0064] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0065] In one embodiment of the present application, each of the above-mentioned jobs is tested separately, including: generating a job script corresponding to each of the above-mentioned jobs; and testing the correctness of each of the above-mentioned job scripts.
[0066] In one embodiment of the present application, testing the entire process includes: generating an empty script; and using the empty script to test the entire process.
[0067] In one embodiment of the present application, after the entire process is tested, the method further includes: exporting the jobs and sub-processes that have passed the test and putting them online.
[0068] The embodiment of the present application also provides a device for testing batch jobs. It should be noted that the device for testing batch jobs in the embodiment of the present application can be used to execute the method for testing batch jobs provided in the embodiment of the present application. The device for testing batch jobs provided in the embodiment of the present application is introduced below.
[0069] Figure 4 Schematic diagram of a device for testing batch operations according to an embodiment of the present application. Figure 4 As shown, the device comprises:
[0070] A configuration unit 10, used to configure all jobs;
[0071] A first testing unit 20, used to test each of the above operations individually;
[0072] The second testing unit 30 is used to test the whole process, where the whole process includes at least one sub-process, and each sub-process includes a plurality of the above-mentioned operations.
[0073] In the above solution, the configuration unit configures all jobs, the first test unit tests each job individually, and the second test unit tests the entire process, which can achieve rapid testing of batch jobs.
[0074] In one embodiment of the present application, the first testing unit includes a first generating module and a first testing module, the first generating module is used to generate a job script corresponding to each of the above jobs; the first testing module is used to test the correctness of each of the above job scripts.
[0075] In one embodiment of the present application, the second test unit includes a second generation module and a second test module, the second generation module is used to generate an empty script; the second test module is used to use the empty script to test the entire process.
[0076] In one embodiment of the present application, the above-mentioned device also includes an export unit, which is used to export the above-mentioned jobs and the above-mentioned sub-processes that have passed the test and put them online after testing the entire process.
[0077] The device for testing batch jobs includes a processor and a memory. The configuration unit, the first test unit, the second test unit, etc. are all stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions.
[0078] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and batch jobs can be tested by adjusting kernel parameters.
[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0080] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, a device where the computer-readable storage medium is located is controlled to execute the method for testing a batch job.
[0081] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for testing batch jobs is executed when the program is running.
[0082] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0083] Step S101, configuring all jobs;
[0084] Step S102, testing each of the above operations separately;
[0085] Step S103, testing the entire process, wherein the entire process includes at least one sub-process, and each sub-process includes a plurality of the above operations.
[0086] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0087] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0088] Step S101, configuring all jobs;
[0089] Step S102, testing each of the above operations separately;
[0090] Step S103, testing the entire process, wherein the entire process includes at least one sub-process, and each sub-process includes a plurality of the above operations.
[0091] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0092] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0093] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0094] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0095] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0096] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0097] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0098] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0099] Example
[0100] This embodiment relates to a specific batch job development configuration test process. The specific process is as follows Figure 5 As shown in the figure, the rapid development, testing and deployment of batch jobs are achieved through job configuration, single job testing, full process testing, and export and release.
[0101] Create job configuration manuals and configuration detection rules, and conduct regular inspections and iterative corrections;
[0102] Use job scripts to test a single job without considering the job process or performing trigger-dependent configuration. Only the correctness of the job script is verified to avoid complex processes affecting script verification. For process testing, empty scripts are used uniformly. Empty scripts are used for verification processes. The execution time of a single job is extremely short, and the entire process can be verified quickly. The production is simulated and run daily, and all types of jobs such as daily, weekly, monthly, quarterly, and annual jobs are fully tested.
[0103] Separating script testing from process testing allows script optimization and process testing to be done in parallel, improving development and testing efficiency and preventing script problems from affecting the entire process testing.
[0104] By exporting scripts, you can quickly generate an Excel configuration file for the job configuration verified in the development and test environment;
[0105] When going online, all data is imported;
[0106] Multiple incremental imports are possible during upgrades and optimizations;
[0107] Directly import Excel configuration files through the front-end interface and review changes to achieve rapid deployment of batch jobs.
[0108] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0109] 1) The job execution system of this application uses a scheduling control layer to schedule and manage jobs to be executed, and uses a job execution layer to execute jobs to be executed, that is, the execution and scheduling of jobs are separated, which can meet the project requirements of large-scale job scheduling. It solves the current organizational problems of large-scale job development, configuration and testing, and realizes rapid deployment and launch. It can realize the normalization and standardization of scheduling development.
[0110] 2) The method for testing batch jobs of the present application first configures all jobs, then tests each job individually, and then tests the entire process, which can achieve rapid testing of batch jobs.
[0111] 3) In the device for testing batch jobs of the present application, the configuration unit configures all jobs, the first test unit tests each job individually, and the second test unit tests the entire process, thereby realizing rapid testing of batch jobs.
[0112] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A system for executing a job, characterized in that: include: The scheduling control layer is used to schedule and manage jobs to be executed; The job execution layer exchanges information with the scheduling control layer to execute the job to be executed; The scheduling control layer includes a task scheduling management platform, which is used to schedule and manage the jobs to be executed. The job execution layer includes oozie, which is used to execute the jobs to be executed. The system also includes an Oozie client, and the task scheduling management platform and Oozie exchange information through the Oozie client; The job execution layer also includes an oozie server, and the oozie client forwards the received scheduling information sent by the task scheduling management platform to the oozie server; The task scheduling management platform includes a management server, a management database, a management database, and a management monitoring interface. The management server and the management database exchange information, and the management monitoring interface exchanges information with the management server and the management database respectively. Among them, the task scheduling management platform replaces the Oozie master control logic and seamlessly integrates the data processing job code developed with the Oozie scheduling framework.
2. The system according to claim 1, characterized in that The scheduling control layer uses a Python public scheduling script to schedule the jobs to be executed.
3. A method for testing batch jobs using the system described in claim 1 or 2, characterized in that: include: Configure all jobs; Testing each of said operations individually; The whole process is tested, wherein the whole process includes at least one sub-process, and each sub-process includes a plurality of the operations.
4. The method according to claim 3, characterized in that Each of the described jobs is tested individually, including: Generate a job script corresponding to each of the jobs; Test the correctness of each of the job scripts.
5. The method according to claim 3, characterized in that: Test the entire process, including: Generate an empty script; The empty script is used to test the entire process.
6. The method according to claim 4, characterized in that After testing the entire process, the method further includes: The jobs and sub-processes that have passed the test are exported and put online.
7. A device for testing batch jobs using the system described in claim 1 or 2, characterized in that: include: Configuration unit, used to configure all jobs; A first testing unit, used to test each of the operations individually; The second testing unit is used to test the whole process, wherein the whole process includes at least one sub-process, and each sub-process includes a plurality of the operations.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for testing batch jobs according to any one of claims 3 to 6.
Citation Information
Patent Citations
Apache Oozie frame-based process task scheduling device for processing big data
CN109284324A
Testing framework for automation objects
EP3798851A1
