Operator development, processing method, device, electronic equipment, system and storage medium

By using the description files and standard operator templates of the target operator package in operator development, the invasiveness problem when operator development is bound to different runtime frameworks is solved, and cross-framework applicability and cost-effectiveness are improved.

CN117348848BActive Publication Date: 2026-11-20THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210762431.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2026-11-20
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

In existing technologies, operator development is highly invasive and has high development and time costs when it is bound to different operating frameworks.

Method used

The target operator package description file and matching operator standard template are determined based on user operation information. The template is populated to generate the target operator, which is then packaged into the standard operator library. This supports multiple runtime frameworks and development languages, and the target operator is developed using the description file and operator standard template.

Benefits of technology

It reduces repetitive work in operator development, improves adaptability, reduces development and time costs, and achieves applicability across runtime frameworks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117348848B_ABST
    Figure CN117348848B_ABST
Patent Text Reader

Abstract

The application discloses an operator development method, a processing method, a device, an electronic device, a system and a storage medium. The method comprises the following steps: obtaining a target operator from a standard operator library; wherein the target operator comprises at least a description file of the operator and an operator source code; the description file is used for describing basic capabilities and running capabilities of the operator, the running capabilities at least comprise framework information and a development language, and the framework information is used for indicating running frameworks supported by the operator; converting the description file of the target operator according to a protocol supported by a target running framework, so as to obtain a processed target operator corresponding to the target running framework; and sending the processed target operator to the corresponding running framework, so as to run the target operator in the corresponding running framework.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence technology, and more specifically, to an operator development, processing method, apparatus, electronic device, system, and storage medium. Background Technology

[0002] In the field of machine learning, model creation is often only the first step in the practical application of machine learning. After the model is created, it often needs to go through many complex processes such as service encapsulation, parameter tuning, data integration, orchestration framework integration, and runtime framework integration. Moreover, each process often requires repeated communication and cooperation from engineers with relevant technical backgrounds to complete.

[0003] To facilitate collaboration, the concept of operators has been abstracted in the field of machine learning, and operators are considered the smallest unit running within a runtime framework. Related technologies typically develop operators using SDKs (Software Development Kits), and operator development is often tied to a specific runtime framework. When it's necessary to bind operators to other runtime frameworks, this SDK development approach is highly intrusive to the operator's logic, incurring modification costs to the existing logic. Furthermore, each operator development requires a significant amount of repetitive work, increasing development and time costs. Summary of the Invention

[0004] One objective of this disclosure is to provide a new technical solution for operator development.

[0005] According to a first aspect of this disclosure, an operator development method is provided, the method comprising: Based on the user's first operation information on the development interface, the description file of the target operator package is determined. The description file is used to describe the operator's basic capabilities and runtime capabilities. The runtime capabilities include at least framework information and development language. The framework information is used to indicate the runtime framework supported by the operator. Determine an operator standard template that matches the description file; wherein the operator standard template includes at least: an operator description file and operator source code; Based on the user's second operation information on the development interface, the operator standard template is filled in to obtain the target operator; The target operator is packaged and stored in the standard operator library.

[0006] Optionally, determining the operator standard template that matches the description file includes: Select the operator standard template that matches the framework information and the development language from the preset operator standard templates; Alternatively, based on the framework information and the development language, a matching operator standard template can be generated.

[0007] Optionally, the operator standard template may further include at least one of the following: operator documentation and operator test files.

[0008] Optionally, the basic capabilities of the operator include: input, output, and operating parameters.

[0009] Optionally, the operator's operational capabilities may also include at least one of the following: operational type, scale, load mode, underlying platform, management mode, dependencies, output data set, status, and architecture.

[0010] Optionally, the framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, MindSpore, Kubernetes, and Hadoop.

[0011] Optionally, the step of packaging the target operator and storing it in the standard operator library includes: Verify whether the target operator satisfies the operator admission mechanism; When the target operator satisfies the operator admission mechanism, the target operator is packaged and stored in the standard operator library.

[0012] According to a second aspect of this disclosure, an operator processing method is provided, the method comprising: Obtain the target operator from the standard operator library; wherein, the target operator includes at least an operator description file and operator source code; the description file is used to describe the operator's basic capabilities and runtime capabilities, the runtime capabilities include at least framework information and development language, and the framework information is used to indicate the runtime framework supported by the operator; According to the protocol supported by the target runtime framework, the description file of the target operator is converted to obtain the processed target operator corresponding to the target runtime framework; The processed target operator corresponding to the target execution framework is sent to the target execution framework to run the target operator in the target execution framework.

[0013] Optionally, before converting the description file of the target operator according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework, the method further includes: The description file of the target operator is parsed into a first file readable by the orchestration framework using an adapter corresponding to the orchestration framework; Using the orchestration framework, the target operator is orchestrated based on the first file corresponding to the target operator to obtain the orchestrated target operator.

[0014] Optionally, the step of converting the description file of the target operator according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework includes: Based on the protocols supported by the target runtime framework, the description file of the target standard is parsed into a second file readable by the protocol; Based on the second document, the processed target operator corresponding to the target running framework is obtained.

[0015] Optionally, the operator standard template may further include at least one of the following: operator documentation and operator test files.

[0016] Optionally, the basic capabilities of the operator include: input, output, and operating parameters.

[0017] Optionally, the operator's operational capabilities may also include at least one of the following: operational type, scale, load mode, underlying platform, management mode, dependencies, output data set, status, and architecture.

[0018] Optionally, the framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, MindSpore, Kubernetes, and Hadoop.

[0019] According to a third aspect of this disclosure, an operator development apparatus is provided, the apparatus comprising: The first determining module is used to determine the description file of the target operator package based on the user's first operation information on the development interface. The description file is used to describe the operator's basic capabilities and runtime capabilities. The runtime capabilities include at least framework information and development language. The framework information is used to indicate the runtime framework supported by the operator. The second determining module is used to determine an operator standard template that matches the description file; wherein, the operator standard template includes at least: an operator description file and operator source code; A filling module is used to fill the operator standard template based on the second operation information of the user on the development interface to obtain the target operator; The packaging module is used to package the target operator and store it in the standard operator library.

[0020] Optionally, the second determining module is specifically used for: Select the operator standard template that matches the framework information and the development language from the preset operator standard templates; Alternatively, based on the framework information and the development language, a matching operator standard template can be generated. Optionally, the operator standard template may further include at least one of the following: operator documentation and operator test files.

[0021] Optionally, the basic capabilities of the operator include: input, output, and operating parameters.

[0022] Optionally, the operator's operational capabilities may also include at least one of the following: operational type, scale, load mode, underlying platform, management mode, dependencies, output data set, status, and architecture.

[0023] Optionally, the framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, MindSpore, Kubernetes, and Hadoop.

[0024] Optionally, the packaging module is specifically used for: Verify whether the target operator satisfies the operator admission mechanism; When the target operator satisfies the operator admission mechanism, the target operator is packaged and stored in the standard operator library.

[0025] According to a fourth aspect of this disclosure, an operator processing apparatus is provided, the apparatus comprising: An acquisition module is used to acquire a target operator from a standard operator library; wherein, the target operator includes at least an operator description file and operator source code; the description file is used to describe the operator's basic capabilities and runtime capabilities, the runtime capabilities include at least framework information and development language, and the framework information is used to indicate the runtime framework supported by the operator; The conversion module is used to convert the description file of the target operator according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework. The sending module is used to send the processed target operator corresponding to the target running framework to the target running framework so as to run the target operator in the target running framework.

[0026] Optionally, the device further includes an arrangement module, specifically used for: The description file of the target operator is parsed into a first file readable by the orchestration framework using an adapter corresponding to the orchestration framework; Using the orchestration framework, the target operator is orchestrated based on the first file corresponding to the target operator to obtain the orchestrated target operator.

[0027] Optionally, the conversion module is specifically used for: Based on the protocols supported by the target runtime framework, the description file of the target standard is parsed into a second file readable by the protocol; Based on the second document, the processed target operator corresponding to the target running framework is obtained.

[0028] Optionally, the operator standard template may further include at least one of the following: operator documentation and operator test files.

[0029] Optionally, the basic capabilities of the operator include: input, output, and operating parameters.

[0030] Optionally, the operator's operational capabilities may also include at least one of the following: operational type, scale, load mode, underlying platform, management mode, and dependencies.

[0031] Optionally, the framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, MindSpore, Kubernetes, and Hadoop.

[0032] According to a fifth aspect of this disclosure, an electronic device is provided comprising at least one computing device and at least one storage device, wherein the at least one storage device is configured to store instructions for controlling the at least one computing device to perform the method described in accordance with the first aspect above; or, the device implements the apparatus described in accordance with the second aspect above through the computing device and the storage device.

[0033] According to a sixth aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the method as described in any one of the first or second aspects.

[0034] According to the seventh aspect of this disclosure, an operator execution system is provided, characterized in that the system includes: a proxy for proxying interactions with other systems, the other systems including: an operator repository and an operator execution framework; a state tracker for tracking and recording task states; and a task configurator for listening to tasks and configuring tasks.

[0035] One beneficial effect of this disclosure is that it develops target operators through the description file of the target operator package and the operator standard template. The description file describes the operator's basic and operational capabilities, including at least framework information and the development language. The framework information indicates the operating framework supported by the operator. The operator standard template includes the operator's description file and source code. Specifically, when developing a target operator, the description file of the target operator package needs to be determined, followed by identifying the matching operator standard template and filling it in to obtain the target operator. In other words, it develops target operators by configuring operator standard templates, which reduces repetitive work during operator development, improves operator adaptability, significantly reduces the difficulty of implementing machine learning, and lowers development and time costs. Attached Figure Description

[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments of the invention and, together with their description, serve to explain the principles of the invention.

[0037] Figure 1 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present disclosure; Figure 2 This is a flowchart illustrating an operator development method according to an embodiment of the present disclosure; Figure 3 This is a flowchart illustrating an operator development method based on an example of this disclosure; Figure 4 This is a flowchart illustrating the operator processing method according to an embodiment of the present disclosure; Figure 5 This is a schematic diagram of the operator operation system structure according to an embodiment of the present disclosure; Figure 6 This is a schematic diagram of an operator operation system structure according to another embodiment of the present disclosure; Figure 7 This is a schematic diagram of an operator operation system structure according to another embodiment of the present disclosure; Figure 8 This is a schematic diagram of the operator execution data flow according to an example of this disclosure; Figure 9 This is a schematic block diagram of an operator development apparatus according to an embodiment of the present disclosure; Figure 10 This is a schematic block diagram of an operator processing apparatus according to an embodiment of the present disclosure; Figure 11 This is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0038] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of the invention.

[0039] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the invention or its application or use.

[0040] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0041] In all the examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.

[0042] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0043] <Hardware Configuration> The method of this disclosure embodiment can be implemented by at least one electronic device, that is, the apparatus 900 for implementing the operator development method or the apparatus 1000 for implementing the operator processing method can be arranged on the at least one electronic device. Figure 1 The hardware structure of any electronic device is shown. Figure 1 The electronic device shown can be a portable computer, desktop computer, workstation, server, etc., or any other device with a processor or other computing device and a memory or other storage device, which is not limited here.

[0044] like Figure 1As shown, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, etc. The processor 1100 is used to execute computer programs. These computer programs can be written using instruction sets based on architectures such as x86, Arm, RISC, MIPS, and SSE. The memory 1200 may include, for example, ROM (Read-Only Memory), RAM (Random Access Memory), or non-volatile memory such as a hard disk. The interface device 1300 may include, for example, a USB interface or a headphone jack. The communication device 1400 may be capable of wired or wireless communication, specifically including Wi-Fi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, etc. The display device 1500 may be, for example, an LCD screen or a touch screen. The input device 1600 may include, for example, a touch screen, a keyboard, or motion input. Electronic device 1000 can output voice information through speaker 1700 and collect voice information through microphone 1800, etc.

[0045] Figure 1 The electronic devices shown are merely illustrative and are in no way intended to limit the invention, its application, or use. In embodiments applied to this disclosure, the memory 1200 of the electronic device 1000 is used to store instructions for controlling the processor 1100 to operate and execute the operator development method or operator processing method of the embodiments of this disclosure. Those skilled in the art can design instructions based on the disclosed scheme. How the instructions control the processor to operate is well known in the art and will not be described in detail here.

[0046] In one embodiment, an electronic device is provided that includes at least one computing device and at least one storage device, the at least one storage device being used to store instructions for controlling the at least one computing device to perform a method according to any embodiment of the present disclosure.

[0047] The device may include at least one Figure 1 The electronic device 1000 shown is intended to provide at least one computing device, such as a processor, and at least one storage device, such as a memory, without limitation herein.

[0048] <Method Example 1> Figure 2 This is a flowchart illustrating an operator development method according to an embodiment of the present disclosure, which is executed by an electronic device 1000, such as... Figure 2 As shown, the method may include the following steps S2100~S2400: Step S2100: Based on the user's first operation information on the development interface, determine the description file of the target operator package.

[0049] Operators can be functional modules developed by developers according to their needs. These operators can include, but are not limited to, at least one of the following: model training operators, model prediction operators, feature extraction operators, and model evaluation operators. Of course, they can also be custom operators developed by developers according to customer needs. The functions and application scenarios of custom operators can be customized by customers, and this embodiment does not limit them.

[0050] The description file is used to describe the operator's basic and operational capabilities. The operational capabilities include at least framework information and a development language. The framework information indicates the operational framework supported by the operator. The description file is in YAML format; for example, it can be named Operator.yaml for easy differentiation from other files.

[0051] The framework information described herein describes the runtime frameworks supported by the operator. The runtime frameworks involved in this embodiment may include, but are not limited to, at least one of the following: Spark, Flink, Horovod, Dask, Mars, MindSpore, Kubernetes, and Hadoop. In this embodiment, different runtime frameworks can be defined in the description file as needed, thereby enabling the developed target operator to adapt to the defined runtime frameworks. Furthermore, when two or more runtime frameworks are defined in the description file, the developed target operator can run simultaneously on these two or more runtime frameworks, thus enabling the target operator to run across runtime frameworks. In other words, the operator development method provided by this embodiment lowers the barrier to entry for operators, has high operator portability, can run on multiple runtime frameworks, and has a wide range of applications.

[0052] The development languages ​​involved in this embodiment may include, but are not limited to, at least one of the following: Python, Golang, C, C++, and Java. In this embodiment, different development languages ​​can be defined in the description file as needed, and operators can be developed based on the defined development languages, enabling operators that are compatible with multi-language development.

[0053] The operational capabilities of the operator may also include, but are not limited to, at least one of the following: operation type, scale, load mode, underlying platform, management mode, dependencies, output data set, status, and architecture. The operation type may include, but is not limited to, online type operators and batch type operators. Online type operators typically provide online prediction services, and may include, but are not limited to, services and streaming. Batch type operators typically provide batch prediction services.

[0054] The scale can include, but is not limited to, single-machine operators and distributed operators. The load mode can include, but is not limited to, remote and local. The underlying platform can include, but is not limited to, at least one of the following: Kubernetes (k8s), YARN, and Hadoop. The management mode can include, but is not limited to, managed systems (watching via admission hooks, non-intrusive, suitable for native k8s types) and status reporting (non-native frameworks, third-party k8s CRDs or other frameworks). The architecture can include, but is not limited to, x86 and ARM.

[0055] Dependencies may include, but are not limited to, ray, dask, and horovod. Status may include, but is not limited to, synchronization status information (syncStatus) and running status (runningPhase). Synchronization status information (syncStatus) may include, but is not limited to, unsynced, syncing, synced, and unknown. Running status (runningPhase) may include, but is not limited to, pending, running, succeeded, skipped, failed, and error.

[0056] The basic capabilities of the operator include, but are not limited to, input, output, and runtime parameters. The input describes the input information during operator runtime, and this input may include, but is not limited to, source type, configuration, and input data. The output describes the output information during operator runtime, and this output may include, but is not limited to, output type, configuration, and output data. Runtime parameters are the necessary business parameters required for operator runtime, and these necessary business parameters may include, but are not limited to, concurrency, number of training epochs, and model type. In this embodiment, by defining the necessary business parameters required for operator runtime in the description file, the operator can run stably, avoid operator failure, and thus improve the operator's runtime capabilities.

[0057] It should be understood that the aforementioned contents contained in the description file, and the specific contents supported by each contents, are merely illustrative. In actual scenarios, the contents of the description file can be adaptively added or removed based on the actual situation.

[0058] In one example, the first operation information a user displays on the development interface could be related to their selection, confirmation, or editing of a description file output by the electronic device. For instance, the description file output by the electronic device could be an initial description file, which might be a file pre-stored in the electronic device. Here, the developer can directly confirm this initial description file as the description file for the target operator package; alternatively, the developer can edit the initial description file according to their needs to obtain the description file for the target operator package. As another example, the electronic device can output multiple description files, allowing the user to select the appropriate one on the interface to determine the description file for the target operator package. This method of obtaining the description file for the target operator package based on the description file output by the electronic device results in high operator development efficiency.

[0059] In one example, the first operation information a user displays on the development interface could be a description file of a target operator package that the user manually writes. This method of manually writing the description file of the target operator package is more in line with user needs, can satisfy users' custom design requirements, and can provide remedial measures for users to customize the description file when the description file preset by the electronic device does not meet user needs.

[0060] After determining the description file of the target operator package based on the user's initial operation information on the development interface, proceed as follows: Step S2200: Determine the operator standard template that matches the description file.

[0061] An operator standard template includes at least: an operator description file and operator source code. It can be understood that the operator standard template can be concretized as a scaffold, which can be referred to as a code directory structure and entry function. In this embodiment, the scaffold serves as the operator standard template.

[0062] The operator source code is the code written to implement the operator's functionality. For example, a feature extraction operator is used to extract features from input data; the corresponding source code for the feature extraction operator is the code written to implement this function. Similarly, a model training operator is used to train a machine learning model based on the feature extraction results; the corresponding source code for the model training operator is the code written to implement this function. And finally, a model evaluation operator is used to evaluate the performance of the trained machine learning model; the corresponding source code for the model evaluation operator is the code written to evaluate the performance of the trained machine learning model.

[0063] In any of the above embodiments, the operator standard template includes, in addition to the description file and the operator source code, at least one of the following: the operator's documentation and the operator's test file.

[0064] The documentation for operators is usually written to help customers and ordinary personnel use, run, and debug operators properly, thereby lowering the barrier to entry for operator applications.

[0065] The test files for operators may include, but are not limited to, test cases and test report templates. Test cases describe the testing tasks performed on the operator, reflecting the test plan, methods, and strategies. Their content may include, but is not limited to, test objectives, test environment, input data, test steps, expected results, and test scripts. Test report templates are the test reports obtained by executing the test cases on the operator. In this embodiment, by specifying the operator's test files in the standard operator template, operator quality can be improved, allowing for operator rating through a combination of automated testing and manual review after the target operator is developed.

[0066] In one embodiment, step S2200, which determines the operator standard template that matches the description file, may further include: selecting an operator standard template that matches the framework information and the development language from a preset set of operator standard templates.

[0067] In this embodiment, the preset operator standard template includes multiple operator standard templates, such as, but not limited to, operator standard template 1 and operator standard template 2. It is understood that any two different programming languages ​​will have different categories of operator standard templates, and different categories of operator standard templates will have different contents or different methods of content generation within the major sections (description file, operator source code, documentation, test file) of the operator standard template. For example, the programming language Python corresponds to one category of operator standard templates, and the programming language C++ corresponds to another category of operator standard templates, and the contents or different methods of content generation within the major sections of these two categories of operator standard templates are different.

[0068] In this embodiment, the framework information and development language are mapped to the operator standard template. That is, different framework information and development language correspond to different operator standard templates. Thus, when the description file of the target operator package is determined, the operator standard template corresponding to the framework information and development language can be determined from the preset operator standard templates based on the framework information and development language in the description file, and the operator standard template can be accurately determined.

[0069] In one embodiment, step S2200, which determines the operator standard template that matches the description file, may further include: generating an operator standard template that matches the framework information and the development language.

[0070] In this embodiment, when the description file of the target operator package is determined, the electronic device can also directly generate an operator standard template that matches the framework information and development language in the description file, which can generate operator standard templates efficiently.

[0071] After executing the operator standard template that matches the description file, proceed to: Step S2300: Based on the second operation information of the user on the development interface, fill in the operator standard template to obtain the target operator.

[0072] In this embodiment, after determining the operator standard template that matches the description file, the target operator can be obtained by filling the operator standard template based on the second operation information of the user on the development interface.

[0073] After executing the second operation information based on the user's actions on the development interface, filling the operator standard template, and obtaining the target operator, proceed to: Step S2400: Package the target operator and store it in the standard operator library.

[0074] In this embodiment, the step S2400 of packaging the target operator and storing it in the standard operator library may further include: verifying whether the target operator satisfies the operator admission mechanism; when the target operator satisfies the operator admission mechanism, packaging the target operator and storing it in the standard operator library.

[0075] For example, the operator admission mechanism can be an automated testing mechanism. In one possible embodiment, the operator admission mechanism can be associated with a test file for the operator. In practical applications, the operator can be tested using the test file, and if it passes the test, it can be determined that the operator admission mechanism is satisfied.

[0076] Alternatively, the operator admission mechanism can be manually controlled by business personnel. In another possible embodiment, once the target operator is obtained, it can be determined whether the target operator meets the operator admission mechanism through manual control, thus providing a possibility for business personnel to manually control the quality of operators.

[0077] Of course, in practical applications, automatic testing mechanisms and human control mechanisms can be combined. When both pass, the target operator satisfies the operator admission mechanism.

[0078] Furthermore, the operator admission mechanism can be set according to actual needs, and this embodiment does not limit the specific content of the operator admission mechanism. That is to say, after obtaining the target operator, it is not directly incorporated into the standard operator library, but first verified based on the operator admission mechanism. Only when the verification is passed is the target operator packaged and stored in the standard operator library, which further improves the operator quality, ensures the consistency of the operator level in the standard operator library, and also reduces the operator development cost accordingly.

[0079] Moreover, the standardized operators can run in clusters or locally with the same functional experience, which reduces the learning cost for operators developers to learn about various distributed clusters.

[0080] Furthermore, if the target operator does not meet the operator admission mechanism, it will be returned to the developers so that they can modify or adjust it. The adjusted target operator can still be used according to... Figure 2 The method shown is used for development.

[0081] According to embodiments of this disclosure, target operators are developed using a description file of the target operator package and a standard operator template. The description file describes the operator's basic and operational capabilities, including at least framework information and a development language. The framework information indicates the operating framework supported by the operator. The standard operator template includes the operator's description file and source code. Specifically, target operator development involves determining the description file of the target operator package, identifying the matching standard operator template, and then filling in the template to obtain the target operator. In other words, target operator development is achieved by configuring a standard operator template, which reduces repetitive work during operator development, improves operator adaptability, significantly reduces the difficulty of implementing machine learning, and lowers development and time costs.

[0082] It should be noted that the operators involved in the embodiments of the present invention can also be used in scenarios such as privacy computing, multi-party secure computing, federated learning, anonymous query, and secure (privacy) intersection.

[0083] The following is a flowchart illustrating an example of an operator development method, in which... Figure 3 As shown, the operator development method may include the following steps S310 to S390: Step S310: Based on the first operation information of the operator developer on the development interface, generate the description file Operator.yaml of the target operator package.

[0084] Step S320: Based on the development language and runtime framework defined in the description file Operator.yaml, automatically generate or manually write scaffolding code.

[0085] Step S330: Perform local debugging of the scaffolding code using opctl.

[0086] Step S340: Fill in the scaffolding code to obtain the target operator.

[0087] Step S350: Package the target operator and upload it to the continuous integration tool (CI tool).

[0088] Step S360: Based on the operator's test file, perform automated testing on the target operator in the CI tool to obtain automated test results.

[0089] In step S370, the operator developer debugs the target operator in the OpHub system based on the automated test results and writes test files for the debugged target operator.

[0090] Step S380: After verifying that the target operator meets the operator admission mechanism in the CI tool, the quality assurance personnel (QA personnel) manually test the target operator based on the written test file, and release the packaged target operator through the CI tool if the test passes.

[0091] Step S390: Place the target operator into the standard operator library, i.e., the artifact library.

[0092] In this example, the benefits of operator standardization during the R&D process include: First, developing target operators based on scaffolded code generation reduces repetitive work, improves operator adaptability and applicability, significantly reduces the difficulty of implementing machine learning, and lowers development and time costs. Furthermore, full lifecycle management improves operator development efficiency, reducing development time by 50% compared to traditional operator development. Second, standardized operators can run both in clusters and locally, reducing the learning curve for operator developers to learn various distributed clusters.

[0093] The benefits of operator standardization for product managers include, but are not limited to: testing operators through operator test documents before they are added to the artifact library, improving operator quality by integrating automated testing, and designing an easy-to-use operator admission mechanism.

[0094] <Method Example 2> Figure 4This is a flowchart illustrating the operator processing method according to an embodiment of the present disclosure. The method is executed by the electronic device 1000, specifically by the Ophub system within the electronic device, or by other modules or systems within the electronic device. These modules or systems can be executed according to... Figure 4 The method shown is used to schedule the application of operators. Specifically, the method may include the following steps S4100~S4300: Step S4100: Obtain the target operator from the standard operator library.

[0095] The target operator can be one or more operators from the standard operator library developed according to Embodiment 1 above. In this embodiment, one or more target operators can be obtained from the standard operator library. (Refer to...) Figure 5 Target operators can be developed using a local IDE or a web IDE and uploaded to a standard operator repository (git repo) so that the system (e.g., Ophub) can obtain the target operators from the git repo.

[0096] The target operator includes at least an operator description file and operator source code; the description file is used to describe the operator's basic capabilities and operational capabilities, and the operational capabilities include at least framework information and development language, and the framework information is used to indicate the operational framework supported by the operator.

[0097] The framework information supports runtime frameworks including, but not limited to, at least one of the following: Spark, Flink, Horovod, Dask, Mars, MindSpore, Local, Kubernetes, Hadoop, and SaaS. In this embodiment, when two or more runtime frameworks are defined in the description file, the developed target operator can run simultaneously on these two or more frameworks, thereby enabling the target operator to run across runtime frameworks, improving its applicability and adaptability, and enhancing the development experience of distributed operators.

[0098] The development languages ​​involved in this embodiment may include, but are not limited to, at least one of the following: Python, Go, C, C++, and Java. In this embodiment, different development languages ​​can be defined in the description file as needed, and operators can be developed based on the defined development languages, enabling operators that are compatible with multi-language development.

[0099] The operational capabilities of the operator may also include, but are not limited to, at least one of the following: operation type, scale, load mode, underlying platform, management mode, dependencies, output data set, status, and architecture. For details, please refer to the description of the operator development implementation example; this example will not elaborate further.

[0100] The basic capabilities of the operator include, but are not limited to, input, output, and operating parameters. For details, please refer to the description in the operator development implementation example; this example will not elaborate further.

[0101] Operator source code is the code written to implement the operator's functionality. For example, a feature extraction operator is used to extract features from input data; correspondingly, the source code for a feature extraction operator is the code written to implement this function. As another example, a model training operator is used to train a machine learning model based on the results of feature extraction; correspondingly, the source code for a model training operator is the code written to implement this function. And as yet another example, a model evaluation operator is used to evaluate the performance of a trained machine learning model; correspondingly, the source code for a model evaluation operator is the code written to implement this function.

[0102] After retrieving the target operator from the standard operator library, proceed to: Step S4200: Based on the protocol supported by the target runtime framework, the description file of the target operator is converted to obtain the processed target operator corresponding to the target runtime framework.

[0103] The target runtime frame is the runtime frame supported by the operator, as indicated by the operator's frame information in the operator's description file. It is understood that there can be only one target runtime frame, or there can be multiple target runtime frames, as detailed above.

[0104] In this embodiment, step S4200, which involves converting the description file of the target operator according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework, may further include: parsing the description file of the target standard into a second file readable by the protocol according to the protocol supported by the target runtime framework; and obtaining the processed target operator corresponding to the target runtime framework based on the second file.

[0105] Understandably, since different runtime frameworks support different protocols, to ensure the target operator runs correctly in the target runtime framework, it's necessary to first parse the target operator's description file into a protocol-readable file according to the protocol supported by the target runtime framework, and then obtain the processed target operator corresponding to the target runtime framework based on that file. (See reference...) Figure 5 The provided runtime framework can include local, Kubernetes, Hadoop, SaaS, etc. (not exhaustive). Here, the target runtime framework can be Hadoop or SaaS. Based on the protocols supported by Hadoop, the description file of the feature extraction operator can be parsed into a readable file to obtain the corresponding processed feature extraction operator for Hadoop. Similarly, based on the protocols supported by SaaS, the description file of the feature extraction operator can be parsed into a readable file to obtain the corresponding processed feature extraction operator for SaaS. It is understandable that... Figure 5 Task tracing in the context of operations is used to track the running status of tasks during the execution of tasks by operators. The task tracing framework may include, but is not limited to: tfBorad, ES, Grafana, log, and tracing.

[0106] Step S4300: The processed target operator corresponding to the target running framework is sent to the corresponding running framework so that the target operator can be run in the corresponding running framework.

[0107] Continuing with the example above, once the processed feature extraction operator for Hadoop is obtained, it can be sent to Hadoop for execution. Similarly, once the processed feature extraction operator for SaaS is obtained, it can be sent to SaaS for execution.

[0108] According to embodiments of this disclosure, the target operator is obtained from a standard operator library. This target operator includes a description file that describes its operational capabilities, which at least include framework information and a development language. The framework information indicates the operating frameworks supported by the operator. That is, the obtained target operator can be configured with framework information as needed, improving its adaptability. Furthermore, when different operating frameworks are defined in the description file, the target operator can possess cross-operating framework capabilities, meaning it can adapt to different operating frameworks and run within them, thus achieving cross-operating framework functionality.

[0109] In one embodiment, when there are multiple target operators, before performing step S3200 above to convert the description file of the target operator according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework, the operator processing method of this embodiment may further include the following steps S5100 to S5200: Step S5100: Using an adapter corresponding to the orchestration framework, the description file of the target operator is parsed into a first file readable by the orchestration framework.

[0110] The orchestration framework may include, but is not limited to, at least one of the following: workflow, argo workflow, airflow, kubeflow.

[0111] In this embodiment, in scenarios involving orchestration and scheduling of multiple target operators, an adapter executor is involved. Each adapter corresponds one-to-one with an orchestration framework, and the adapter is used to implement the interaction between the orchestration framework and the system. Specifically, the adapter corresponding to the orchestration framework is used to: convert the description file of each target operator according to the requirements of the orchestration framework, making it a file readable by the orchestration framework. For example, refer to... Figure 5 The provided orchestration frameworks include kubeflow, airflow, and argo workflow. Here, operator developers can choose the orchestration framework workflow, and the target operators include feature extraction operators and model training operators. Here, the description files of feature extraction operators and model training operators can be converted according to the adapters corresponding to the workflow.

[0112] Step S5200: The orchestration framework orchestrates the target operator based on the first file corresponding to the target operator to obtain the orchestrated target operator.

[0113] Continuing with the example above, the orchestration framework workflow orchestrates the feature extraction operators and model training operators based on the first file corresponding to the feature extraction operators and the first file corresponding to the model training operators. The orchestrated feature extraction operators and model training operators are then converted into protocols through the Ophub system and sent to the runtime framework for execution.

[0114] Understandably, after orchestrating multiple target operators, this system can convert the description files of the target operators according to the protocols supported by the target runtime framework, obtain the processed target operators corresponding to the target runtime framework, and send the processed target operators to the corresponding runtime framework for execution.

[0115] According to embodiments of this disclosure, the operator runtime is decoupled from the orchestration scheduling. Different adapters are developed for different orchestration frameworks, and the target operator is submitted to the system through the adapter.

[0116] <Operator Runtime System> This disclosure also provides an operator execution system, referring to... Figure 6The system 600 includes an agent 610, a state tracker 620, and a task configurator 630. The system 600 can be an Ophub system.

[0117] In this embodiment, the transmitter 610 is used to proxy interactions with other systems, including: an operator repository and an operator runtime framework.

[0118] This operator library is the standard operator library described in the above embodiments. Figure 7 The nexus repository shown.

[0119] The operator can run on a framework including but not limited to at least one of the following: Spark, Flink, Horovod, Dask, Mars, and MindSpore. Figure 7 The image shows the Kubernetes framework.

[0120] In any embodiment, in addition to the operator repository and operator execution framework, the other system may further include a service framework and a management framework. The service framework is the data framework required for operator execution, and may include, but is not limited to, the following: Figure 7 The example shown uses Elasticsearch and MySQL. This management framework is used to manage tasks, and it can be... Figure 7 The example shown is the distributed version control system Git.

[0121] In this embodiment, a state tracker (watcher) 620 is used to track and record the task state. (Refer to...) Figure 7 The State Tracker 620 can monitor tasks in Kubernetes and log them to Elasticsearch and MySQL. Depending on the specific situation, the State Tracker 620 may include a log monitoring and collection component or interface with a third party.

[0122] Task Configurator 630 (addmission webhook) is used to listen for and configure tasks. (See reference...) Figure 7 The Task Configurator 630 can listen to tasks submitted to Kubernetes and perform unified configuration at the cluster and namespace levels.

[0123] Understandably, the above-mentioned agent 610, state tracker 620 and task configurator 630 provide the ability to expose data, and the specific data storage can be flexibly selected according to on-site dependencies.

[0124] Combination Figure 8 The diagram shows a schematic of the data flow for an example operator. Figure 8First, submit the operator execution task and submit the task to the operator runtime framework platform. Then, execute the task in the operator runtime framework. During the execution of the operator task, information can be collected and viewed during the operator runtime through the meta / status, log, and trace in the status tracer 620.

[0125] <Device Embodiment 1> This disclosure also provides an operator development apparatus 900, such as... Figure 9 As shown, the operator development device 900 includes a first determining module 910, a second determining module 920, a filling module 930, and a packaging module 940.

[0126] The first determining module 910 is used to determine the description file of the target operator package based on the user's first operation information on the development interface. The description file is used to describe the operator's basic capabilities and operational capabilities. The operational capabilities include at least framework information and development language. The framework information is used to indicate the operational framework supported by the operator.

[0127] The second determining module 920 is used to determine an operator standard template that matches the description file; wherein the operator standard template includes at least: an operator description file and operator source code.

[0128] The filling module 930 is used to fill the operator standard template based on the second operation information of the user on the development interface to obtain the target operator.

[0129] Packaging module 940 is used to package the target operator and store it in the standard operator library.

[0130] In one embodiment, the second determining module 920 is specifically used for: Select the operator standard template that matches the framework information and the development language from the preset operator standard templates; Alternatively, based on the framework information and the development language, a matching operator standard template can be generated.

[0131] In one embodiment, the operator standard template further includes at least one of the following: operator documentation and operator test files.

[0132] In one embodiment, the basic capabilities of the operator include: input, output, and operating parameters.

[0133] In one embodiment, the operator's operational capabilities further include at least one of the following: operational type, scale, load mode, underlying platform, management mode, dependencies, output data set, status, and architecture.

[0134] In one embodiment, the framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, and MindSpore.

[0135] In one embodiment, the packaging module 940 is specifically used to: verify whether the target operator satisfies the operator admission mechanism; when the target operator satisfies the operator admission mechanism, package the target operator and store it in the standard operator library.

[0136] According to embodiments of this disclosure, target operators are developed using a description file of the target operator package and a standard operator template. The description file describes the operator's basic and operational capabilities, including at least framework information and a development language. The framework information indicates the operating framework supported by the operator. The standard operator template includes the operator's description file and source code. Specifically, target operator development involves determining the description file of the target operator package, identifying the matching standard operator template, and then filling in the template to obtain the target operator. In other words, target operator development is achieved by configuring a standard operator template, which reduces repetitive work during operator development, improves operator adaptability, significantly reduces the difficulty of implementing machine learning, and lowers development and time costs.

[0137] <Device Embodiment Two> This disclosure also provides an operator processing device 1000, such as... Figure 10 As shown, the operator processing device 1000 includes an acquisition module 1010, a conversion module 1020, and a transmission module 1030.

[0138] The acquisition module 1010 is used to acquire a target operator from a standard operator library; wherein the target operator includes at least an operator description file and operator source code; the description file is used to describe the operator's basic capabilities and runtime capabilities, the runtime capabilities include at least framework information and development language, and the framework information is used to indicate the runtime framework supported by the operator.

[0139] The conversion module 1020 is used to convert the description file of the target operator according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework.

[0140] The sending module 1030 is used to send the processed target operator corresponding to the target running framework to the target running framework so as to run the target operator in the target running framework.

[0141] In one embodiment, the apparatus further includes an orchestration module (not shown in the figure), specifically configured to: parse the description file of the target operator into a first file readable by the orchestration framework through an adapter corresponding to the orchestration framework; and the orchestration framework orchestrates the target operator based on the first file corresponding to the target operator to obtain the orchestrated target operator.

[0142] In one embodiment, the conversion module 1020 is specifically used to: parse the description file of the target standard into a second file readable by the protocol supported by the target runtime framework; and obtain the processed target operator corresponding to the target runtime framework based on the second file.

[0143] In one embodiment, the operator standard template further includes at least one of the following: operator documentation and operator test files.

[0144] In one embodiment, the basic capabilities of the operator include: input, output, and operating parameters.

[0145] In one embodiment, the operator's operational capabilities may further include at least one of the following: operational type, scale, load mode, underlying platform, management mode, and dependencies.

[0146] In one embodiment, the framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, and MindSpore.

[0147] According to embodiments of this disclosure, the target operator is obtained from a standard operator library. This target operator includes a description file that describes its operational capabilities, which at least include framework information and a development language. The framework information indicates the operating frameworks supported by the operator. That is, the obtained target operator can be configured with framework information as needed, improving its adaptability. Furthermore, when different operating frameworks are defined in the description file, the target operator can possess cross-operating framework capabilities, meaning it can adapt to different operating frameworks and run within them, thus achieving cross-operating framework functionality.

[0148] <Equipment Example> This disclosure provides an electronic device 1100, which can be a server or a terminal device. The server can be a monolithic server or a distributed server spanning multiple computers or a computer data center. The terminal device can be a mobile phone, tablet computer, laptop computer, etc.

[0149] like Figure 11As shown, the electronic device 1100 includes a processor 1110 and a memory 1120, the memory 1120 being used to store executable instructions; the processor 1110 being used to control the electronic device 1100 to execute the operator development method or operator processing method according to any embodiment of the present invention, according to the instructions.

[0150] The electronic device can be an electronic product with a processor and memory. For example, it can be a smartphone, laptop, desktop computer, tablet computer, etc.

[0151] <Media Example> This disclosure provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements the operator development method or operator processing method provided in any of the foregoing embodiments.

[0152] This invention can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.

[0153] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0154] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0155] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.

[0156] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0157] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0158] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0159] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.

[0160] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims

1. An operator development method, characterized in that, The method includes: Based on the user's first operation information on the development interface, the description file of the target operator package is determined. The description file is used to describe the operator's basic capabilities and runtime capabilities. The runtime capabilities include at least framework information and development language. The framework information is used to indicate the runtime framework supported by the operator. Determine an operator standard template that matches the description file; wherein the operator standard template includes at least: an operator description file and operator source code; Based on the user's second operation information on the development interface, the operator standard template is filled in to obtain the target operator; The target operator is packaged and stored in the standard operator library.

2. The method according to claim 1, characterized in that, The process of determining the operator standard template that matches the description file includes: Select the operator standard template that matches the framework information and the development language from the preset operator standard templates; Alternatively, based on the framework information and the development language, a matching operator standard template can be generated.

3. The method according to claim 1, characterized in that, The operator standard template also includes at least one of the following: operator documentation and operator test files.

4. The method according to any one of claims 1-3, characterized in that, The basic capabilities of the operator include: input, output, and operating parameters.

5. The method according to any one of claims 1-3, characterized in that, The operator's operational capabilities also include at least one of the following: operational type, scale, load mode, underlying platform, management mode, dependencies, output data set, status, and architecture.

6. The method according to any one of claims 1-3, characterized in that, The framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, MindSpore, Kubernetes, and Hadoop.

7. The method according to any one of claims 1-3, characterized in that, The step of packaging the target operator and storing it in the standard operator library includes: Verify whether the target operator satisfies the operator admission mechanism; When the target operator satisfies the operator admission mechanism, the target operator is packaged and stored in the standard operator library.

8. An operator processing method, characterized in that, The method includes: Obtain the target operator from the standard operator library; wherein, the target operator includes at least an operator description file and operator source code; the description file is used to describe the operator's basic capabilities and runtime capabilities, the runtime capabilities include at least framework information and development language, and the framework information is used to indicate the runtime framework supported by the operator; The target runtime framework is determined based on the framework information, and the description file of the target operator is converted according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework. The processed target operator corresponding to the target execution framework is sent to the target execution framework to run the target operator in the target execution framework.

9. The method according to claim 8, characterized in that, Before converting the description file of the target operator according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework, the method further includes: The description file of the target operator is parsed into a first file readable by the orchestration framework using an adapter corresponding to the orchestration framework; Using the orchestration framework, the target operator is orchestrated based on the first file corresponding to the target operator to obtain the orchestrated target operator.

10. The method according to claim 8, characterized in that, The step of converting the description file of the target operator according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework includes: According to the protocol supported by the target runtime framework, the description file of the target operator is parsed into a second file readable by the protocol; Based on the second document, obtain the processed target operator corresponding to the target runtime framework.

11. The method according to any one of claims 8-10, characterized in that, The basic capabilities of the operator include: input, output, and operating parameters.

12. The method according to any one of claims 8-10, characterized in that, The operator's operational capabilities also include at least one of the following: operational type, scale, load mode, underlying platform, management mode, dependencies, output data set, status, and architecture.

13. The method according to any one of claims 8-10, characterized in that, The framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, MindSpore, Kubernetes, and Hadoop.

14. An operator development apparatus, characterized in that, The device includes: The first determining module is used to determine the description file of the target operator package based on the user's first operation information on the development interface. The description file is used to describe the operator's basic capabilities and runtime capabilities. The runtime capabilities include at least framework information and development language. The framework information is used to indicate the runtime framework supported by the operator. The second determining module is used to determine an operator standard template that matches the description file; wherein, the operator standard template includes at least: an operator description file and operator source code; A filling module is used to fill the operator standard template based on the second operation information of the user on the development interface to obtain the target operator; The packaging module is used to package the target operator and store it in the standard operator library.

15. The apparatus according to claim 14, characterized in that, The second determining module is specifically used for: Select the operator standard template that matches the framework information and the development language from the preset operator standard templates; Alternatively, based on the framework information and the development language, a matching operator standard template can be generated.

16. The apparatus according to claim 14, characterized in that, The operator standard template also includes at least one of the following: operator documentation and operator test files.

17. The apparatus according to any one of claims 14-16, characterized in that, The basic capabilities of the operator include: input, output, and operating parameters.

18. The apparatus according to any one of claims 14-16, characterized in that, The operator's operational capabilities also include at least one of the following: operational type, scale, load mode, underlying platform, management mode, dependencies, output data set, status, and architecture.

19. The apparatus according to any one of claims 14-16, characterized in that, The framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, MindSpore, Kubernetes, and Hadoop.

20. The apparatus according to any one of claims 14-16, characterized in that, The packaging module is specifically used for: Verify whether the target operator satisfies the operator admission mechanism; When the target operator satisfies the operator admission mechanism, the target operator is packaged and stored in the standard operator library.

21. An operator processing device, characterized in that, The device includes: An acquisition module is used to acquire a target operator from a standard operator library; wherein, the target operator includes at least an operator description file and operator source code; the description file is used to describe the operator's basic capabilities and runtime capabilities, the runtime capabilities include at least framework information and development language, and the framework information is used to indicate the runtime framework supported by the operator; The conversion module is used to determine the target runtime framework based on the framework information, and to convert the description file of the target operator according to the protocol supported by the target runtime framework to obtain the processed target operator corresponding to the target runtime framework. The sending module is used to send the processed target operator corresponding to the target running framework to the target running framework so as to run the target operator in the target running framework.

22. The apparatus according to claim 21, characterized in that, The device also includes an arrangement module, specifically used for: The description file of the target operator is parsed into a first file readable by the orchestration framework using an adapter corresponding to the orchestration framework; Using the orchestration framework, the target operator is orchestrated based on the first file corresponding to the target operator to obtain the orchestrated target operator.

23. The apparatus according to claim 21, characterized in that, The conversion module is specifically used for: According to the protocol supported by the target runtime framework, the description file of the target operator is parsed into a second file readable by the protocol; Based on the second document, the processed target operator corresponding to the target running framework is obtained.

24. The apparatus according to any one of claims 21-23, characterized in that, The basic capabilities of the operator include: input, output, and operating parameters.

25. The apparatus according to any one of claims 21-23, characterized in that, The operator's operational capabilities also include at least one of the following: operational type, scale, load mode, underlying platform, management mode, and dependencies.

26. The apparatus according to any one of claims 21-23, characterized in that, The framework information supports at least one of the following runtime frameworks: Spark, Flink, Horovod, Dask, Mars, MindSpore, Kubernetes, and Hadoop.

27. An electronic device comprising at least one computing device and at least one storage device, characterized in that, The at least one storage device is used to store instructions for controlling the at least one computing device to perform the method according to any one of claims 1 to 13; or, the device implements the apparatus according to claims 14 to 26 through the computing device and the storage device.

28. A computer-readable storage medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, implements the method as described in any one of claims 1 to 13.

29. An operator execution system, characterized in that, The system for performing the operator processing method as described in any one of claims 8-13 includes: A proxy is used to act as an intermediary for interactions with other systems, including: an operator repository and an operator runtime framework. A status tracker is used to track and record the status of a task. The task configurator is used to listen for tasks and configure them.

Citation Information

Patent Citations

  • Operator management method and operator management system

    CN112632113A