A multi-modal data acquisition method, system, terminal and storage medium

By creating collection tasks in the multi-modal data collection system, selecting ETL tools and custom execution engines, and configuring data sources and target databases, the problems of complexity and high cost of multi-modal data collection in traditional methods are solved, and flexibility is achieved. , Real-time data collection.

CN118093707BActive Publication Date: 2024-08-30NORTH CHINA DIGITAL HEALTH TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410518256.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-08-30
Estimated Expiration
2044-04-28

AI Technical Summary

Technical Problem

When faced with complex and diverse data collection scenarios, traditional data collection methods require the use of a variety of tools and methods, which increases the complexity and cost of data collection and affects the real-time nature of data collection, especially in multi-modal data collection. difficult to carry out effectively.

Method used

Provide a multi-modal data collection method and system that realizes the collection of different modal data by creating collection tasks, configuring data sources and target databases, and selecting applicable task executors, including ETL tools and customized execution engines. Supports full, incremental and time period data modes, and monitors the status and resource usage of collection tasks.

Benefits of technology

It achieves flexible and adaptable collection of different modal data, reduces the complexity and cost of data collection, improves the real-time and scalability of data collection, and is suitable for multi-modal data scenarios, such as medical data collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118093707B
    Figure CN118093707B
Patent Text Reader

Abstract

The present invention provides a multimodal data collection method, system, terminal and storage medium, which relates to the field of data processing technology. The method includes: creating a collection task; configuring a data source and a target database for the collection task; the data source is a database for data collection, and the target database is a database for storing the collected data; creating a collection subtask under the collection task, and configuring a data mapping rule between the data source and the target database for the created collection subtask; selecting an applicable task executor for the created collection subtask according to the configured data source and target database, the task executor includes several execution engines, and the execution engine is several ETL tools; calling the task executor to execute the corresponding collection subtask. The present invention can execute data collection tasks according to different execution engines selected as needed, collect data of different modes, and conveniently and timely obtain more abundant data information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a multimodal data acquisition method, system, terminal and storage medium. Background Art

[0002] With the rapid development of technology, data has become a core element of organizational and corporate decision-making. In the field of medical technology, data is not only the basis for diagnosis and treatment, but also the key to medical research and improvement. Therefore, the accuracy and real-time nature of data collection are crucial to the development of the medical industry.

[0003] Traditional data collection methods mainly use ETL tools for data collection. Many ETL tools can only support limited database types. In addition, when dealing with complex and diverse data collection scenarios (i.e., dealing with multimodal data collection), due to the characteristics of decentralized data storage, diverse formats, and multiple data sources, it is often necessary to use a variety of different tools and methods to collect data in different modalities. In addition, for data of different modalities that cannot be directly collected using ETL tools, additional data conversion is often required before using the corresponding ETL tools for collection. This not only increases the complexity and cost of data collection, but also affects the real-time nature of data collection. Summary of the invention

[0004] In order to solve at least one of the above problems, the present invention provides a multimodal data acquisition method, system, terminal and storage medium, which are used to execute corresponding data acquisition tasks according to different execution engines selected as needed, collect data of different modalities, and obtain richer data information conveniently and timely.

[0005] In a first aspect, the present invention provides a multimodal data acquisition method, the method comprising:

[0006] Create a collection task;

[0007] Configure a data source and a target database for the acquisition task; the data source is the source of the data to be acquired, and the target database is the database used to store the acquired data;

[0008] Creating a collection subtask under the collection task, and configuring a data mapping rule between the data source and the target database for the created collection subtask;

[0009] According to the configured data source and target database, select the appropriate task executor for the created collection subtask. The task executor includes several execution engines, which are several pre-assembled ETL tools, including but not limited to DataX tool, Kettle tool, Canal tool, Flume tool, Sqoop tool and OGG tool;

[0010] Call the task executor to execute the corresponding collection subtask.

[0011] Furthermore, the task executor also includes a data collector, which is a customized execution engine, a non-ETL tool, including a real-time interface collector, a real-time timing collector and an MQ interface collector, and is used to collect data that the execution engine cannot collect.

[0012] Furthermore, configuring the data source and the target database includes: configuring the source path, address and port of the data source; and configuring the address, port and database table information of the target database.

[0013] Furthermore, the method also includes, when configuring the data mapping rules between the data source and the target database for the created collection subtask, also configuring the data collection mode of the data source for each created collection subtask, including a full data mode, an incremental data mode and a time period data mode.

[0014] Furthermore, the method also includes monitoring the execution status, execution time, execution log and occupied resources of the collection subtask when the task executor executes the collection subtask;

[0015] The method also includes counting and displaying the number of successful executions of the acquisition subtasks, the number of failed executions of the acquisition subtasks, and the execution time of the acquisition subtasks.

[0016] In a second aspect, the present invention provides a multimodal data acquisition system, the system comprising:

[0017] Task processing module, used to create collection tasks;

[0018] A configuration management module is used to configure a data source and a target database for the acquisition task; the data source is the source of the data to be acquired, and the target database is the database used to store the acquired data;

[0019] The task processing module is further used to create a collection subtask under the collection task, and configure a data mapping rule between the data source and the target database for the created collection subtask;

[0020] The task processing module is also used to select an applicable task executor for the created collection subtask according to the configured data source and target database; the task executor includes several execution engines, which are several pre-assembled ETL tools, including but not limited to DataX tools, Kettle tools, Canal tools, Flume tools, Sqoop tools and OGG tools; the task executor also includes a data collector, which is a custom execution engine and a non-ETL tool, including a real-time interface collector, a real-time time series collector and an MQ interface collector, and is used to collect data that the execution engine cannot collect;

[0021] The task processing module is also used to call the task executor to execute the corresponding collection subtask.

[0022] Further, the configuration management module includes a data source configuration module and a target database configuration module;

[0023] The data source configuration module is used to configure the source path, address and port of the data source;

[0024] The target database configuration module is used to configure the address, port and library table information of the target database.

[0025] Further, the task processing module includes a task management module, a task configuration module, a task executor management module, a task monitoring module and a task display module;

[0026] Task management module, used to manage the creation, start, pause, resume and termination of collection tasks and collection subtasks;

[0027] The task configuration module is used to configure the data mapping rules between the data source and the target database for the created collection subtask; and is also used to configure the data collection mode of the data source for the created collection subtask, including the full data mode, the incremental data mode and the time period data mode;

[0028] Task executor management module, used to manage task executors;

[0029] The task monitoring module is used to monitor the execution status, execution time, execution log and occupied resources of the collection subtask when the task executor executes the collection subtask;

[0030] The task display module is used to count and display the number of successful collection subtasks, the number of failed collection subtasks and the execution time of the collection subtasks.

[0031] In a third aspect, the present invention provides a terminal, the terminal comprising a memory and a processor;

[0032] A memory, used for storing a multimodal data acquisition program;

[0033] A processor is used to implement the multimodal data acquisition method described in any one of the first aspects when executing the multimodal data acquisition program.

[0034] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein a multimodal data acquisition program is stored on the readable storage medium, and when the multimodal data acquisition program is executed by a processor, the multimodal data acquisition method described in any one of the first aspects is implemented.

[0035] It can be seen from the above technical solutions that the present invention has the following advantages:

[0036] The present invention is based on multimodal data collection technology. It creates several collection subtasks under the collection task, and selects different task executors to execute the data collection task according to the collection subtasks. By selecting several ETL tools in the execution engine in the task executor, the collection of data in different modalities can be realized, so that data collection has better scalability and compatibility, which helps to obtain richer data in a timely and convenient manner.

[0037] Moreover, the present invention is based on multimodal data collection technology and sets a custom execution engine data collector. Through the data collector, data of different modalities that cannot be directly collected by the ETL tool in the execution engine can be directly collected, so that data collection has flexibility and adaptability, and can be applicable to different multimodal data collection scenarios, such as medical data collection scenarios, and flexibly select suitable task executors for data collection, which reduces the complexity and cost of data collection and improves the real-time performance of data collection.

[0038] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the description will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A schematic flow chart of an embodiment of the multimodal data acquisition method of the present invention;

[0041] Figure 2 A schematic block diagram of an embodiment of the multimodal data acquisition system of the present invention;

[0042] Figure 3 A schematic diagram of the structure of an embodiment of the terminal of the present invention;

[0043] Figure 4 A schematic diagram of the structure of an embodiment of the readable storage medium of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0046] The multimodal data acquisition method provided in the embodiment of the present invention is executed by a computer device, and accordingly, the multimodal data acquisition system runs in the computer device.

[0047] like Figure 1 As shown, the present invention provides a multimodal data acquisition method, the method comprising:

[0048] Create a collection task;

[0049] Configure a data source and a target database for the acquisition task; the data source is the source of the data to be acquired, and the target database is the database used to store the acquired data;

[0050] Creating a collection subtask under the collection task, and configuring a data mapping rule between the data source and the target database for the created collection subtask;

[0051] According to the configured data source and target database, select the appropriate task executor for the created collection subtask. The task executor includes several execution engines, which are ETL tools, including but not limited to DataX tool, Kettle tool, Canal tool, Flume tool, Sqoop tool and OGG tool.

[0052] Call the task executor to execute the corresponding collection subtask.

[0053] To facilitate understanding of the present invention, the multimodal data acquisition method provided by the present invention is further described below based on the principle of the multimodal data acquisition method of the present invention and in combination with the process of the multimodal data acquisition method in the embodiment.

[0054] Specifically, the multimodal data collection method includes:

[0055] Step 110: Create a collection task.

[0056] Create a collection task. When creating a collection task, you can create one or more collection tasks as needed.

[0057] Step 120: configure a data source and a target database for the acquisition task; the data source is the source of data to be acquired, and the target database is the database used to store the acquired data.

[0058] According to the created collection task, the source of data to be collected is recorded as the data source, and the database used to store the collected data is recorded as the target database. According to the created collection task and the corresponding data source and target database configured, configure the source path, address and port of the data source and the address, port and library table information of the target database.

[0059] The source path of the data source refers to the path of the source of the data to be collected.

[0060] It should be noted that one collection task is configured with one data source and one target database. If you need to collect data from one data source to multiple target databases, or collect data from multiple data sources to one target database, or collect data from multiple data sources to multiple target databases, you can create a corresponding number of collection tasks, and then configure the source path, address and port of the corresponding data source for each collection task, as well as the address, port and library table information of the corresponding target database.

[0061] Step 130: Create a collection subtask under the collection task, and configure a data mapping rule between the data source and the target database for the created collection subtask.

[0062] Regarding the number of collection subtasks to be created, those skilled in the art may create one or more collection subtasks according to actual needs.

[0063] The data mapping rules between the data source and the target database include table mapping rules between the data source and the target database and field mapping rules between the data source and the target database.

[0064] The data mapping rule between the data source and the target database refers to the rule for mapping the data in the data source to the target database; the table mapping rule between the data source and the target database refers to the correspondence between the data in the source table in the data source and the target table in the target database; the field mapping rule between the data source and the target database refers to the correspondence between the fields in the source table of the data source and the fields in the target table of the target database.

[0065] Regarding the number of collection subtasks to be created, those skilled in the art may create one or more collection subtasks according to actual needs.

[0066] After creating the collection subtask, a table mapping rule between the data source and the target database or a field mapping rule between the data source and the target database is configured for the created collection subtask, so that when executing the collection subtask, the data of the source table in the data source is collected into the target table in the target database according to the configured table mapping rule, or the fields in the source table of the data source are collected into the target fields in the target table of the target database according to the configured field mapping rule.

[0067] Step 140: According to the configured data source and target database, select an applicable task executor for the created collection subtask. The task executor includes several execution engines, which are ETL tools, including but not limited to DataX tools, Kettle tools, Canal tools, Flume tools, Sqoop tools, and OGG tools.

[0068] The task executor includes an execution engine, which is a pre-collection of all ETL tools available on the market. Each ETL tool serves as an execution engine. The execution engines include but are not limited to DataX tools, Kettle tools, Canal tools, Flume tools, Sqoop tools and OGG tools, which are used to collect data from data sources.

[0069] The data source types supported by the DataX tool include but are not limited to relational databases (such as MySQL, Oracle, SQLServer, etc.), NoSQL databases (such as MongoDB, HBase, etc.), big data storage (such as HDFS, Hive, etc.), cloud storage (such as OSS, OBS, etc.) and message queues (such as Kafka, RabbitMQ, etc.).

[0070] The data source types supported by the Kettle tool include but are not limited to relational databases, NoSQL databases, text files, XML files, and related information of Web services.

[0071] The main data source type supported by the Canal tool is MySQL (MariaDB is also supported).

[0072] The data source types supported by the Flume tool include but are not limited to Avro data sources, log files, MySQL databases, Oracle databases, message queues (such as Kafka and RabbitMQ), network transmission data streams (such as TCP and UDP), and related information of Web services.

[0073] The main data source type supported by the Sqoop tool is relational database (RDBMS).

[0074] The data source types supported by the OGG tool include but are not limited to Oracle and non-Oracle databases (such as MySQL, IBMDB2, MS SQL, Sybase, etc.), files and unstructured data sources (such as XML, JSON, CSV files, etc.), and big data-based databases (such as big data platform databases based on technologies such as Apache Hive, Apache HDFS, and Apache Hadoop).

[0075] Step 150: Call the task executor to execute the corresponding collection subtask.

[0076] The task scheduler selected in step 140 is called to execute the corresponding acquisition subtask according to the data mapping rule between the data source and the target database configured in step 130 .

[0077] As an embodiment of the present invention, the task executor also includes a data collector, which is a customized execution engine and a non-ETL tool, including a real-time interface collector, a real-time timing collector and an MQ interface collector, and is used to collect data that the execution engine cannot collect.

[0078] The real-time interface collector is used to collect data that occurs in real time or data that is uploaded in real time.

[0079] The real-time time series collector is used to collect device information data of the Internet of Things.

[0080] The MQ interface collector is used to collect data from large numbers of highly concurrent requests.

[0081] According to the configured data source and target database, select an applicable task executor for the created collection subtask. When the selected task executor is a data collector, call the data collector to collect the data from the source table in the data source into the target table in the target database, or collect the fields in the source table of the data source into the target field in the target table of the target database according to the data mapping rules configured between the data source and the target database. When executing the data collection subtask, the data collector cleans the collected data, converts the format of the cleaned data, converts the format of the data in the collected data source into the data format of the corresponding target table or target field in the target database, and stores the converted data in the target table or target field of the target database.

[0082] As an embodiment of the present invention, when configuring the data mapping rules between the data source and the target database for the created collection subtask, the data collection mode of the data source is also configured for each created collection subtask, including the full data mode, the incremental data mode and the time period data mode.

[0083] Full data mode means that when collecting data, all data in the data source that needs to be collected is collected. Incremental data mode means collecting data added to the data source since the last collection. Time period data mode means collecting all data in a specified time period in the data source. When configuring the time period data mode, set the start and end time of the collection, and collect all data from the data source in the time period according to the set start and end time. That is, set the start time of the collection to x year x month x day x hour, and the end time of the collection to y year y month y day y hour. When executing the data collection task, all data in the data source from x year x month x day x hour to y year y month y day y hour is collected.

[0084] As an embodiment of the present invention, the method further includes, when the task executor executes the collection subtask, monitoring the execution state, execution time, execution log and occupied resources of the collection subtask.

[0085] As an embodiment of the present invention, the method further includes counting and displaying the number of successful executions of the collection subtasks, the number of failed executions of the collection subtasks, and the execution time of the collection subtasks.

[0086] The number of successful collection subtasks, the number of failed collection subtasks, and the execution time of the collection subtasks from the current moment to a certain time in the past are counted and displayed. Specifically, the number of successful collection subtasks, the number of failed collection subtasks, and the execution time of the collection subtasks within one day from the current moment are counted and displayed. In actual application, technical personnel in this field can set the specific time period length according to actual needs.

[0087] As an embodiment of the present invention, Figure 2 As shown, the multimodal data acquisition system 200 includes: a task processing module 210 and a configuration management module 220 .

[0088] The task processing module 210 is used to create a collection task;

[0089] Configuration management module 220, used to configure a data source and a target database for the acquisition task; the data source is the source of the data to be acquired, and the target database is the database used to store the acquired data;

[0090] The task processing module 210 is further used to create a collection subtask under the collection task, and configure a data mapping rule between the data source and the target database for the created collection subtask;

[0091] The task processing module 210 is also used to select an applicable task executor for the created collection subtask according to the configured data source and target database; the task executor includes several execution engines, which are several pre-assembled ETL tools, including but not limited to DataX tools, Kettle tools, Canal tools, Flume tools, Sqoop tools and OGG tools; the task executor also includes a data collector, which is a custom execution engine and a non-ETL tool, including a real-time interface collector, a real-time time series collector and an MQ interface collector, and is used to collect data that the execution engine cannot collect;

[0092] The task processing module 210 is also used to call the task executor to execute the corresponding collection subtask.

[0093] As an embodiment of the present invention, the configuration management module 220 includes a data source configuration module 211 and a target database configuration module 222 .

[0094] The data source configuration module 221 is used to configure the source path, address and port of the data source;

[0095] The target database configuration module 222 is used to configure the address, port and database table information of the target database.

[0096] As an embodiment of the present invention, the task processing module includes a task management module 211 , a task configuration module 212 , a task executor management module 213 , a task monitoring module 214 and a task display module 215 .

[0097] The task management module 211 is used to manage the creation of acquisition tasks and the creation, start, pause, resume and termination of acquisition subtasks. The start of the acquisition subtask refers to controlling the appropriate task executor selected for the created acquisition subtask to execute the corresponding acquisition subtask, the pause of the acquisition subtask refers to controlling the task executor to pause the execution of the corresponding acquisition subtask, the resume of the acquisition subtask refers to controlling the task executor to end the state of pausing the execution of the corresponding acquisition subtask and continue to execute the corresponding acquisition subtask, and the termination of the acquisition subtask refers to controlling the task executor to end the execution of the corresponding acquisition subtask.

[0098] The task configuration module 212 is used to configure the data mapping rules between the data source and the target database for the created collection subtask. The task configuration module 212 is also used to configure the data collection mode of the data source for the created collection subtask, including the full data mode, the incremental data mode and the time period data mode.

[0099] The task executor management module 213 is used to manage the task executors, including adding, deleting, modifying, searching and monitoring the task executors. Specifically, the user can add a new task executor or delete a faulty task executor through the task executor management module 213 as needed. The user can also modify the configuration of the task executor or query the configuration or status of the task executor through the task executor management module 213 as needed. The task executor management module 213 monitors the status and performance of the task executor in real time, and sends a corresponding alarm notification to remind the user that the task executor is abnormal when an abnormality is detected in the task executor.

[0100] The task monitoring module 214 is used to monitor the execution status, execution time, execution log and occupied resources of the collection subtask when the task executor 213 executes the collection subtask.

[0101] The task display module 215 is used to count and display the number of successful executions of the collection subtasks, the number of failed executions of the collection subtasks, and the execution time of the collection subtasks.

[0102] Figure 3 The present invention provides a schematic diagram of the structure of a terminal 300 according to an embodiment of the present invention. The terminal 300 can be used to execute the multimodal data acquisition method according to an embodiment of the present invention.

[0103] The terminal 300 may include: a processor 310, a memory 320 and a communication module 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0104] The memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 can perform some or all of the steps in the following method embodiments.

[0105] The processor 310 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 320, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In an embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0106] The communication module 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

[0107] like Figure 4 As shown, the present invention further provides a computer storage medium 400, wherein the computer storage medium 400 may store a program 401, and when the program is executed, the program may include some or all of the steps of each embodiment provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0108] The present invention is based on multimodal data collection technology. It creates several collection subtasks under the collection task, and selects different task executors to execute the data collection task according to the collection subtasks. By selecting several ETL tools in the execution engine in the task executor, the collection of data in different modalities can be realized, so that data collection has better scalability and compatibility, which helps to obtain richer data in a timely and convenient manner.

[0109] Moreover, the present invention is based on multimodal data collection technology and sets a custom execution engine data collector. Through the data collector, it is possible to directly collect data of different modes that the ETL tool in the execution engine cannot directly collect, so that data collection has flexibility and adaptability, and can be applied to different multimodal data collection scenarios, such as medical data collection scenarios, and flexibly select suitable task executors for data collection, which reduces the complexity and cost of data collection and improves the real-time performance of data collection. In addition, the design principle of the present invention is reliable, the structure is simple, and it has a very broad application prospect. The technical effects that can be achieved by this embodiment can be found in the description above, and will not be repeated here.

[0110] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.

[0111] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

[0112] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.

[0113] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0114] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0115] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all of these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A multimodal data acquisition method, It is characterized in that The method comprises the steps of: Create a collection task; Configuring a data source and a target database for the acquisition task; The data source is the source of data to be collected, and the target database is the database used to store the collected data; Creating a collection subtask under the collection task, and configuring a data mapping rule between the data source and the target database for the created collection subtask; According to the configured data source and target database, select an applicable task executor for the created collection subtask. The task executor includes several execution engines, which are several pre-assembled ETL tools, including but not limited to DataX tool, Kettle tool, Canal tool, Flume tool, Sqoop tool and OGG tool; the task executor also includes a data collector, which is a custom execution engine and a non-ETL tool, including a real-time interface collector, a real-time time series collector and an MQ interface collector, and is used to collect data that the execution engine cannot collect; The real-time interface collector is used to collect real-time data or real-time uploaded data; the real-time sequence collector is used to collect device information data of the Internet of Things; The MQ interface collector is used to collect a large number of high-concurrency request data; when the selected task executor is a data collector, the data collector is called to collect the data of the source table in the data source into the target table in the target database, or collect the fields in the source table of the data source into the target fields in the target table of the target database according to the data mapping rules between the configured data source and the target database; When executing the data collection subtask, the data collector cleans the collected data, converts the format of the cleaned data, converts the format of the data in the collected data source into the data format of the corresponding target table or target field in the target database, and stores the converted data in the target table or target field of the target database; Call the task executor to execute the corresponding collection subtask.

2. The multimodal data acquisition method according to claim 1, It is characterized in that Configuring the data source and target database includes: configuring the source path, address and port of the data source; configuring the address, port and library table information of the target database.

3. The multimodal data acquisition method according to claim 1, It is characterized in that The method also includes, when configuring the data mapping rules between the data source and the target database for the created collection subtask, configuring the data collection mode of the data source for each created collection subtask, including a full data mode, an incremental data mode and a time period data mode.

4. The multimodal data acquisition method according to claim 1, It is characterized in that The method also includes monitoring the execution status, execution time, execution log and occupied resources of the collection subtask when the task executor executes the collection subtask; The method also includes counting and displaying the number of successful executions of the acquisition subtasks, the number of failed executions of the acquisition subtasks, and the execution time of the acquisition subtasks.

5. A multimodal data acquisition system, It is characterized in that The system includes: Task processing module, used to create collection tasks; A configuration management module, used to configure a data source and a target database for the acquisition task; The data source is the source of data to be collected, and the target database is the database used to store the collected data; The task processing module is further used to create a collection subtask under the collection task, and configure a data mapping rule between the data source and the target database for the created collection subtask; The task processing module is also used to select an applicable task executor for the created collection subtask according to the configured data source and target database; the task executor includes several execution engines, which are several pre-assembled ETL tools, including but not limited to DataX tools, Kettle tools, Canal tools, Flume tools, Sqoop tools and OGG tools; the task executor also includes a data collector, which is a custom execution engine and a non-ETL tool, including a real-time interface collector, a real-time time series collector and an MQ interface collector, and is used to collect data that the execution engine cannot collect; The real-time interface collector is used to collect real-time data or real-time uploaded data; the real-time sequence collector is used to collect device information data of the Internet of Things; The MQ interface collector is used to collect a large number of high-concurrency request data; when the selected task executor is a data collector, the data collector is called to collect the data of the source table in the data source into the target table in the target database, or collect the fields in the source table of the data source into the target fields in the target table of the target database according to the data mapping rules between the configured data source and the target database; When executing the data collection subtask, the data collector cleans the collected data, converts the format of the cleaned data, converts the format of the data in the collected data source into the data format of the corresponding target table or target field in the target database, and stores the converted data in the target table or target field of the target database; The task processing module is also used to call the task executor to execute the corresponding collection subtask.

6. The multimodal data acquisition system according to claim 5, It is characterized in that The configuration management module includes a data source configuration module and a target database configuration module; The data source configuration module is used to configure the source path, address and port of the data source; The target database configuration module is used to configure the address, port and library table information of the target database.

7. The multimodal data acquisition system according to claim 5, It is characterized in that The task processing module includes a task management module, a task configuration module, a task executor management module, a task monitoring module and a task display module; Task management module, used to manage the creation, start, pause, resume and termination of collection tasks and collection subtasks; The task configuration module is used to configure the data mapping rules between the data source and the target database for the created collection subtask; and is also used to configure the data collection mode of the data source for the created collection subtask, including the full data mode, the incremental data mode and the time period data mode; Task executor management module, used to manage task executors; The task monitoring module is used to monitor the execution status, execution time, execution log and occupied resources of the collection subtask when the task executor executes the collection subtask; The task display module is used to count and display the number of successful collection subtasks, the number of failed collection subtasks and the execution time of the collection subtasks.

8. A terminal, It is characterized in that The terminal includes a memory and a processor; A memory, used for storing a multimodal data acquisition program; A processor, used to implement the multimodal data acquisition method according to any one of claims 1 to 4 when executing the multimodal data acquisition program.

9. A computer-readable storage medium storing a computer program, It is characterized in that The readable storage medium stores a multimodal data acquisition program, and when the multimodal data acquisition program is executed by a processor, the multimodal data acquisition method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • A distributed ETL data acquisition method and device

    CN109582723A

  • A visual multi-data source ETL tool

    CN109669983A