Method, system, equipment and medium for data warehouse data life cycle management

Through automated data life cycle management methods, the problem of redundant and invalid data management in enterprise data warehouses is solved, efficient data cleaning and resource optimization are achieved, and data management efficiency and security are improved.

CN118733685APending Publication Date: 2024-10-01HENAN ZHONGYUAN CONSUMER FINANCE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411086654.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technologies lack effective data lifecycle management strategies in enterprise data warehouses, resulting in redundant and invalid data occupying storage resources, affecting data accuracy and decision-making efficiency, and existing methods such as regular cleaning, based on access frequency, and based on value evaluation and metadata management have limitations.

Method used

By regularly obtaining HDFS image files, parsing and extracting table-level information, querying the Hive metadata database, expanding table information, classifying and configuring life cycle policies according to data importance, realizing automated regular checks and reminders, deferred processing, and ensuring timely cleanup of data and updates.

Benefits of technology

It improves data management efficiency, enhances data visibility and management transparency, optimizes resource utilization, reduces operating costs, and ensures data security and business response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733685A_ABST
    Figure CN118733685A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a system, equipment and a medium for data warehouse data life cycle management, and the method comprises the steps: regularly obtaining an HDFS mirror image file, analyzing the HDFS mirror image file into a CSV format file, and uploading the CSV format file to an HDFS; analyzing and extracting table-level information; a Hive metadatabase is queried; expanding table information; database classification and life cycle strategy configuration; regularly checking and reminding; executing a predetermined expiration processing operation for the expired table; and carrying out delay treatment. Through an automatic timed task, the whole process is highly automatic from the acquisition and analysis of an HDFS mirror image file to the extraction and uploading of table-level information, and then to the query of a Hive metadatabase, the expansion of the table information, the classification of the database and the configuration of a life cycle strategy, and the efficiency of data management is greatly improved. The method disclosed by the invention has obvious advantages in the aspects of improving the management efficiency, enhancing the data visibility, optimizing the resource utilization, improving the data security, reducing the operation cost and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data management and relates to a method, system, device and medium for data warehouse data lifecycle management. Background Art

[0002] In the current enterprise data warehouse environment, with the continuous expansion of business scale and the sharp increase in data volume, data lifecycle management has become an urgent problem to be solved. The redundant data and invalid data accumulated in the data warehouse, due to the lack of effective management mechanism, not only occupy a large amount of valuable storage resources, reduce the overall utilization of IT resources, but also seriously affect the accuracy and reliability of data, thus posing a threat to the decision-making efficiency and business development of the enterprise.

[0003] The existing data warehouse data lifecycle management methods mainly include the following, but each method has its inherent limitations and challenges: Periodic cleanup method: This method relies on preset time rules to clean up data, such as "delete data from one year ago." However, this method ignores the actual use value and business needs of data, and can easily lead to the accidental deletion of important historical data or data that needs to be preserved for a long time, affecting business continuity and data integrity.

[0004] Method based on data access frequency: This method determines the life cycle of data based on its access frequency, but the data access patterns in reality are often complex and changeable, and there are irregular access situations. This may cause high-value but low-frequency data to be mistakenly deleted, or low-value but frequently accessed data to occupy too many resources, making it impossible to effectively optimize the storage structure.

[0005] Data value-based approach: This strategy attempts to develop a cleanup strategy by evaluating the value and importance of data. However, the evaluation of data value is often affected by subjective judgment and is difficult to be objective and fair. At the same time, a comprehensive value evaluation process requires a lot of manpower, material resources and time costs, which increases the complexity and difficulty of management.

[0006] Metadata management-based approach: Identifying the life cycle of data by maintaining and managing metadata is a more sophisticated management approach. However, metadata management itself is a complex process that requires a lot of resources and effort to ensure the accuracy and completeness of metadata. In addition, incomplete or lost metadata may also lead to the failure of data life cycle management strategies.

[0007] In view of the above problems, it is particularly important to develop an efficient and intelligent data warehouse data lifecycle management method. Summary of the invention

[0008] The purpose of the present invention is to solve the problem of lack of effective data lifecycle management strategy in the prior art and to provide a method, system, device and medium for data warehouse data lifecycle management.

[0009] In order to achieve the above object, the present invention adopts the following technical solutions: A method for data warehouse data lifecycle management, comprising the following steps: Obtain HDFS image files regularly, parse HDFS image files into CSV format files, and upload them to HDFS; Analyze and extract table-level information, parse the uploaded CSV format file, obtain the table-level information of each table, and send the table-level information to the data lifecycle management system; Query the Hive metadata database to obtain the name, database, description, creation time, and creator information of all tables in the data warehouse. Expand table information and add maintainer information and tags for each table in the data warehouse; Database classification and lifecycle policy configuration: classify the databases in the data warehouse according to the importance of the stored data, and configure different lifecycle policies for each type of database; Regular inspection and reminder: Regularly check whether the tables in each database have reached the retention period set in their lifecycle policies, and send reminder information to the corresponding maintenance personnel before the table expires to determine whether to extend it; for expired tables, perform the scheduled expiration processing operations; Extension processing: If an extension request is received, the expiration time of the table is recalculated based on the larger value of the extension time and the expiration time calculated by the original policy, and the system record is updated, and a new reminder message is sent.

[0010] The analysis and extraction of table-level information is specifically as follows: Parse the CSV files stored in HDFS and obtain table-level information such as the most recent access time, data size, and number of blocks for each data table by executing SQL queries; The parsed raw data contains file-level information such as the file size and the last modification / access time of each file in the table. Through SQL query or data processing logic, this file-level information is aggregated into table-level information for statistics and analysis, changing the data granularity from file level to table level.

[0011] The database classification is specifically to classify and grade the databases in the data warehouse according to the importance of the stored data, and distinguish between formal tables and temporary tables, and core databases and non-core databases.

[0012] The lifecycle policy configuration is specifically to configure corresponding lifecycle policies for databases of different classifications and levels according to business needs, including data retention period and expiration processing method. The data retention period of core database tables is set to 3 years, and the data retention period of temporary tables is set to 180 days.

[0013] The scheduled inspection and reminder are as follows: the system regularly checks every day whether the tables in each database have reached the retention period set in its lifecycle policy, and determines whether the table has expired by comparing the last access time of the table with the configured validity period to determine whether it is less than the current date; for expired tables, the system executes the predetermined expiration processing operation.

[0014] For the expired table, the predetermined expiration processing operation is performed, specifically: The system initiates an approval process for deleting data. The approval information in the approval process includes the name of the table, the database to which it belongs, the expiration date, and the amount of data. The data warehouse maintenance personnel and data maintenance personnel are designated as approvers. Approval and confirmation: After receiving the approval request, the data warehouse maintenance personnel and data maintainer will review the approval information and decide whether to agree to delete the data based on the actual situation. If both parties agree, the approval is passed. If one party disagrees, the approval process will be suspended or rejected. Data deletion: After approval, the system will perform the data deletion operation, or perform corresponding processing according to the instructions in the approval result.

[0015] A system for data warehouse data lifecycle management, including the following modules: The data acquisition and parsing module is used to obtain image files from HDFS at a fixed time, parse them into CSV format, and upload them to the specified location of HDFS; The table-level information extraction module is used to parse CSV files, extract and send the table-level information of each table to the data lifecycle management system; Metadatabase query module, used to query the Hive metadatabase and obtain basic information of all tables in the data warehouse; The table information extension module is used to add maintainer information and labels to tables in the data warehouse based on basic information; Database classification and policy configuration module, which is used to classify databases according to factors such as data importance and configure lifecycle policies for each type of database; The scheduled check and expiration processing module is used to regularly check the retention period of the table, send reminder information, and perform expiration processing operations; The extension processing module is used to process extension requests, recalculate and update the expiration time of the table, and send new reminder information.

[0016] It also includes a rights management module, which is responsible for the rights allocation and management of system users, ensuring that different users can only access and operate their authorized data and functions.

[0017] A device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method as described in any one of the preceding items when executing the computer program.

[0018] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of the preceding items.

[0019] Compared with the prior art, the present invention has the following beneficial effects: The method for data warehouse data lifecycle management in the present invention, through automated timed tasks, from the acquisition and parsing of HDFS image files to the extraction and uploading of table-level information, to the query of Hive metadata database, the expansion of table information, the classification of databases and the configuration of lifecycle policies, the whole process is highly automated, greatly improving the efficiency of data management. At the same time, the method enhances the visibility and management transparency of data by adding maintainer information and labels to each table, which helps the business team to better understand the data structure and purpose. In addition, data is classified and configured with different lifecycle policies according to its importance, which optimizes resource utilization and reduces operating costs. Automated expiration checks and reminders, deferred processing and other functions not only ensure timely cleaning and updating of data, improve data security, but also improve the business team's response speed and decision-making efficiency to data. The method of the present invention shows significant advantages in improving management efficiency, enhancing data visibility, optimizing resource utilization, improving data security and reducing operating costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 The present invention is a flow chart of the method for data warehouse data lifecycle management. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0023] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. 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.

[0024] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0025] The present invention is further described in detail below in conjunction with the accompanying drawings: See also Figure 1 , is a flow chart of the method for data warehouse data lifecycle management of the present invention, which specifically includes the following steps: S1, periodically obtains the HDFS image file, parses the HDFS image file into a CSV format file, and uploads it to HDFS.

[0026] S2 analyzes and extracts table-level information, parses the uploaded CSV format file, obtains the table-level information of each table, and sends the table-level information to the data lifecycle management system.

[0027] Specifically: Parse the CSV files stored in HDFS and obtain table-level information such as the most recent access time, data size, and number of blocks for each data table by executing SQL queries; The parsed raw data contains file-level information such as the file size and the last modification / access time of each file in the table. Through SQL query or data processing logic, this file-level information is aggregated into table-level information for statistics and analysis, changing the data granularity from file level to table level.

[0028] S3, query the Hive metadata database, and obtain the name, database, description, creation time, and creator information of all tables in the data warehouse.

[0029] S4, expands the table information and adds maintainer information and tags for each table in the data warehouse.

[0030] S5, database classification and lifecycle policy configuration, classifies the databases in the data warehouse according to the importance of the stored data, and configures different lifecycle policies for each type of database.

[0031] The database classification is specifically to classify and grade the databases in the data warehouse according to the importance of the stored data, distinguishing between formal tables and temporary tables, core libraries and non-core libraries. Formal tables and core libraries are retained for a longer time, while temporary tables and temporary libraries are retained for a shorter time. This is to match different life cycle strategies; life cycle strategies are rules set by the company, such as the core library table retention period is 3 years, temporary tables are retained for 180 days, and expiration reminders are deleted.

[0032] The lifecycle policy configuration is to configure corresponding lifecycle policies for databases of different categories and levels according to business needs, including data retention period and expiration processing method.

[0033] S6, regular inspection and reminder, regularly check whether the tables in each database have reached the retention period set in its lifecycle policy, send reminder information to the corresponding maintenance personnel before the table expires, and determine whether to extend it; for expired tables, execute the scheduled expiration processing operation.

[0034] The specific details of scheduled checks and reminders are as follows: the system regularly checks every day whether the tables in each database have reached the retention period set in its lifecycle policy. It determines whether the table has expired by comparing the last access time of the table with the configured validity period and judging whether it is less than the current date; for expired tables, the system executes the predetermined expiration processing operation.

[0035] For the expired table, the scheduled expiration processing operation is performed, specifically: The system initiates an approval process for deleting data. The approval information in the approval process includes the name of the table, the database to which it belongs, the expiration date, and the amount of data. The data warehouse maintenance personnel and data maintenance personnel are designated as approvers. Approval and confirmation: After receiving the approval request, the data warehouse maintenance personnel and data maintainer will review the approval information and decide whether to agree to delete the data based on the actual situation. If both parties agree, the approval is passed. If one party disagrees, the approval process will be suspended or rejected. Data deletion: After approval, the system will perform the data deletion operation, or perform corresponding processing according to the instructions in the approval result.

[0036] S7, extension processing, if an extension request is received, the expiration time of the table is recalculated according to the larger value of the extension time and the expiration time calculated by the original policy, and the system record is updated, and a new reminder message is sent at the same time.

[0037] The method for data warehouse data lifecycle management in the present invention maximizes the value of data, and data lifecycle management helps to maximize the value of data. By classifying and evaluating data, it is possible to determine which data is most important for business decisions and operations, thereby rationally allocating resources and investment. Optimized storage and costs: Data lifecycle management can help organizations optimize data storage and costs. Different types of data may have different storage requirements. According to the access frequency, retention period, and performance requirements of the data, appropriate storage media and storage solutions can be selected to minimize costs. Timely cleanup of expired data: Data lifecycle management helps to rationalize and clean up data. Over time, organizations may accumulate a large amount of redundant, expired, or no longer valuable data. By regularly reviewing and cleaning up data, storage space occupancy can be reduced, data quality can be improved, and management costs can be reduced.

[0038] An embodiment of the present invention is a system for data warehouse data lifecycle management, comprising the following modules: The data acquisition and parsing module is used to periodically obtain image files from HDFS, parse them into CSV format, and upload them to the specified location of HDFS.

[0039] The table-level information extraction module is used to parse CSV files, extract and send the table-level information of each table to the data lifecycle management system.

[0040] The metadata database query module is used to query the Hive metadata database to obtain basic information of all tables in the data warehouse, such as the table name, database, creation time, creator, etc. This information is an important basis for subsequent database classification and lifecycle policy configuration.

[0041] The table information extension module is responsible for adding additional information to each table in the data warehouse, such as the name of the maintainer and business tags, after obtaining the basic information of the table, to facilitate data management and maintenance.

[0042] The database classification and policy configuration module is used to classify databases according to factors such as data importance, and configure lifecycle policies for each type of database. This module classifies databases in the data warehouse according to factors such as data importance, access frequency, and business needs, such as core databases, non-core databases, and temporary databases, and configures corresponding lifecycle policies for each type of database, including data retention period, expiration processing method, etc.

[0043] The scheduled check and expiration processing module is used to regularly check the retention period of each table in the data warehouse. For tables that are about to expire, reminders are sent to maintenance personnel in advance. For expired tables, expiration processing operations are performed according to the preset lifecycle policy, such as automatic deletion or deletion after backup.

[0044] The extension processing module is responsible for processing extension requests for tables that are about to expire. It recalculates and updates the expiration time of the table based on the larger value of the extension time and the expiration time calculated by the original policy, and sends reminder information to the corresponding maintenance personnel again.

[0045] The authority management module is responsible for allocating and managing the authority of system users, ensuring that different users can only access and operate the data and functions for which they are authorized.

[0046] An embodiment of the present invention provides a terminal device. The terminal device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0047] The computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to accomplish the present invention.

[0048] The device / terminal equipment may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The device / terminal equipment may include, but is not limited to, a processor and a memory.

[0049] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0050] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the apparatus / terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.

[0051] If the module / unit integrated in the device / terminal equipment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0052] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for data warehouse data lifecycle management, characterized in that: The following steps are involved: Obtain HDFS image files regularly, parse HDFS image files into CSV format files, and upload them to HDFS; Analyze and extract table-level information, parse the uploaded CSV format file, obtain the table-level information of each table, and send the table-level information to the data lifecycle management system; Query the Hive metadata database to obtain the name, database, description, creation time, and creator information of all tables in the data warehouse. Expand table information and add maintainer information and tags for each table in the data warehouse; Database classification and lifecycle policy configuration: classify the databases in the data warehouse according to the importance of the stored data, and configure different lifecycle policies for each type of database; Regular inspection and reminder: Regularly check whether the tables in each database have reached the retention period set in their lifecycle policies, and send reminder information to the corresponding maintenance personnel before the table expires to determine whether to extend it; for expired tables, perform the scheduled expiration processing operations; Extension processing: If an extension request is received, the expiration time of the table is recalculated based on the larger value of the extension time and the expiration time calculated by the original policy, and the system record is updated, and a new reminder message is sent.

2. A method for data warehouse data lifecycle management according to claim 1, characterized in that: The analysis and extraction of table-level information is specifically as follows: Parse the CSV files stored in HDFS and obtain table-level information such as the most recent access time, data size, and number of blocks for each data table by executing SQL queries; The parsed raw data contains file-level information such as the file size and the last modification / access time of each file in the table. Through SQL query or data processing logic, this file-level information is aggregated into table-level information for statistics and analysis, changing the data granularity from file level to table level.

3. A method for data warehouse data lifecycle management according to claim 1, characterized in that: The database classification is specifically to classify and grade the databases in the data warehouse according to the importance of the stored data, and distinguish between formal tables and temporary tables, and core databases and non-core databases.

4. A method for data warehouse data lifecycle management according to claim 1, characterized in that: The lifecycle policy configuration is specifically to configure corresponding lifecycle policies for databases of different classifications and levels according to business needs, including data retention period and expiration processing method. The data retention period of core database tables is set to 3 years, and the data retention period of temporary tables is set to 180 days.

5. A method for data warehouse data lifecycle management according to claim 1, characterized in that: The scheduled inspection and reminder are as follows: the system regularly checks every day whether the tables in each database have reached the retention period set in its lifecycle policy, and determines whether the table has expired by comparing the last access time of the table with the configured validity period to determine whether it is less than the current date; for expired tables, the system executes the predetermined expiration processing operation.

6. A method for data warehouse data lifecycle management according to claim 1, characterized in that: For the expired table, the predetermined expiration processing operation is performed, specifically: The system initiates an approval process for deleting data. The approval information in the approval process includes the name of the table, the database to which it belongs, the expiration date, and the amount of data. The data warehouse maintenance personnel and data maintenance personnel are designated as approvers. Approval and confirmation: After receiving the approval request, the data warehouse maintenance personnel and data maintainer will review the approval information and decide whether to agree to delete the data based on the actual situation. If both parties agree, the approval is passed. If one party disagrees, the approval process will be suspended or rejected. Data deletion: After approval, the system will perform the data deletion operation, or perform corresponding processing according to the instructions in the approval result.

7. A system for data warehouse data lifecycle management, characterized in that: Includes the following modules: The data acquisition and parsing module is used to obtain image files from HDFS at a fixed time, parse them into CSV format, and upload them to the specified location of HDFS; The table-level information extraction module is used to parse CSV files, extract and send the table-level information of each table to the data lifecycle management system; Metadatabase query module, used to query the Hive metadatabase and obtain basic information of all tables in the data warehouse; The table information extension module is used to add maintainer information and labels to tables in the data warehouse based on basic information; Database classification and policy configuration module, which is used to classify databases according to factors such as data importance and configure lifecycle policies for each type of database; The scheduled check and expiration processing module is used to regularly check the retention period of the table, send reminder information, and perform expiration processing operations; The extension processing module is used to process extension requests, recalculate and update the expiration time of the table, and send new reminder information.

8. A system for data warehouse data lifecycle management according to claim 7, characterized in that: It also includes a rights management module, which is responsible for the rights allocation and management of system users, ensuring that different users can only access and operate their authorized data and functions.

9. A device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • An implementation method for supporting data life cycle management of a multi-database engine

    CN109815219A

  • Big data webpage storage and analysis method

    CN112732668A

  • Elastic, Massively Parallel Processing Data Warehouse

    US20130205028A1