A data governance implementation system based on Iceberg
By designing data collection, processing and storage modules in the Iceberg data lake, monitoring and adjusting the byte differences between metadata and governance data solves the problem of data entry delays and interruptions caused by network failures, and improves the stability and stability of data governance. processing efficiency.
Patent Information
- Application Number
- CN202411034493.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The long running time of the existing Iceberg data lake led to network interface failures, resulting in delays or interruptions in the data entry process, which in turn led to excessive cleaning during the data cleaning process, reducing the stability of data governance and the amount of bytes of output data.
A data governance implementation system based on Iceberg is designed, including a data collection module, a data processing module, a storage module and a control module. By monitoring and adjusting the byte difference between metadata and governance data, the storage of the data entry area is adjusted. capacity and number of concurrent tasks, and optimize the update synchronization threshold of data distribution versions to improve the stability and processing efficiency of data governance.
By increasing the storage capacity of the data entry buffer, the impact of network problems on data entry is reduced; by adjusting the number of concurrent tasks and update synchronization thresholds, data conflicts and delayed updates are reduced, and data processing efficiency and governance stability are improved.
Smart Images

Figure CN118568052B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data governance implementation system based on Iceberg. Background Art
[0002] Among existing technologies, Iceberg is one of the more popular solutions in data lake solutions, and is usually used to organize and implement data storage in batch and stream integration. Every submission of Iceberg will generate a new file. The file size is closely related to the submission frequency and data volume. When there are more small files, it will lead to many problems such as decreased query performance and low storage efficiency. At present, the community is relatively fragmented in terms of content in this area.
[0003] Chinese Patent Publication No.: CN115827598A discloses a data quality monitoring method and system for an Iceberg data lake, comprising the following steps: (1) for information collection in the warehousing scenario, when obtaining KAFKA data through the FLINK program, the KAFKA offset is recorded in real time and printed to the log, which is collected by the log collection system for quality monitoring; (2) for information collection in the real-time computing scenario, when the FLINK program parses the data and enters the data into each layer, the side out method is used to write the field parsing errors and the data format that does not conform to the data into the log collection system for quality monitoring; (3) for information collection in the offline computing scenario, the log collection system for quality monitoring is used to obtain each offline task log, and the abnormal information and data volume information are filtered. The amount of data in the data lake is obtained through FLINK offline calculation; (4) For abnormal data monitoring scenarios, FLINK real-time calculation is used to process the log data generated from real-time and offline operation scenarios, and filter to obtain abnormal data; (5) For data volume monitoring scenarios, FLINK offline calculation is used to compare the difference between the amount of data received in the warehousing scenario and the amount of data in the data lake plus the amount of abnormal data; (6) The calculation results are directly written into the MYSQL database; (7) The data quality is displayed through the data quality display system, and the administrator is notified of abnormal information in a timely manner via email and SMS. It can be seen that the data quality monitoring method and system of the Iceberg data lake have the problem that due to long-term operation, the network interface fails, resulting in network delays or interruptions, resulting in data interruption or loss during the input process, and then excessive cleaning is performed during the cleaning process to ensure the consistency of the output data, resulting in a reduction in the number of bytes of the output data, thereby causing a decrease in the stability of data governance. Summary of the invention
[0004] To this end, the present invention provides a data governance implementation system based on Iceberg to overcome the problem in the prior art that long-term operation may cause network interface failure, resulting in network delays or interruptions, causing data interruption or loss during the entry process, and further leading to excessive cleaning during the cleaning process to ensure the consistency of the output data, resulting in a reduction in the number of bytes of the output data and thus causing a decrease in the stability of data governance.
[0005] To achieve the above objectives, the present invention provides a data governance implementation system based on Iceberg, comprising:
[0006] Data collection module, used to collect metadata of files in the data lake;
[0007] a data processing module connected to the data acquisition module and used for processing the metadata according to Iceberg to output governance data, including a data redistribution unit for redistributing the derivative data output by preprocessing the metadata to output the derived data and a data update unit connected to the data redistribution unit for updating the data distribution version in Iceberg according to the derived data to output the governance data;
[0008] A storage module, which is connected to the data acquisition module and the data processing module respectively, and is used to store the metadata, the derivative data, the derived data and the governance data respectively;
[0009] A control module, which is respectively connected to the data acquisition module, the data processing module and the storage module, and is used to determine the data governance state according to the variance of the byte difference between the governance data and the metadata, and to determine the storage capacity of the metadata acquisition and entry area or the accuracy of data redistribution according to the data governance state, and to determine the number of concurrent tasks of Iceberg according to the accuracy of data redistribution or to determine the update synchronization threshold of the data distribution version according to the success rate of file merging, and to redetermine the update synchronization threshold of the data distribution version according to the average update time of the data distribution version under the preset synchronization condition;
[0010] The preset synchronization condition is that the data update unit updates the data distribution version according to the determined update synchronization threshold.
[0011] Furthermore, the data processing module also includes a preprocessing unit for preprocessing the metadata to output derived data.
[0012] Further, the control module is connected to the data update unit, and is used to calculate the variance of the byte difference between the governance data and the metadata according to the byte amount of the governance data and the byte amount of the metadata in a number of governance cycles, and to determine that the stability of the data governance does not meet the requirements when the variance of the byte difference between the governance data and the metadata satisfies the first data governance state or the second data governance state;
[0013] Among them, the first data governance state is that the variance of the byte difference between the governance data and the metadata is greater than the preset first variance and less than or equal to the preset second variance; the second data governance state is that the variance of the byte difference between the governance data and the metadata is greater than the preset second variance.
[0014] Furthermore, the control module is connected to the data redistribution unit to preliminarily determine whether the accuracy of the data redistribution meets the requirements when the variance of the byte difference between the governance data and the metadata only satisfies the first data governance state, and to make a secondary determination on whether the accuracy of the data redistribution meets the requirements based on the proportion of data volume of duplicate files.
[0015] Furthermore, the control module is connected to the data collection module to increase the storage capacity of the metadata collection and entry area when the variance of the byte difference between the governance data and the metadata only satisfies the second data governance state;
[0016] The increase in the storage capacity of the metadata collection and entry area is determined by the difference between the variance of the byte difference between the governance data and the metadata and a preset second variance.
[0017] Further, the control module is connected to the data redistribution unit, and is used to make a second determination that the accuracy of data redistribution does not meet the requirement when the data volume ratio of the duplicate files meets the first data volume ratio condition or the second data volume ratio condition, and to preliminarily determine that the validity of file merging does not meet the requirement when the data volume ratio of the duplicate files only meets the second data volume ratio condition, and to make a second determination on whether the validity of file merging meets the requirement according to the success rate of file merging;
[0018] The control module is connected to the data redistribution unit, and is used to increase the number of concurrent tasks of Iceberg when the data volume ratio of the duplicate files only meets the first data volume ratio condition;
[0019] The increase in the number of concurrent tasks of Iceberg is determined by the difference between the data volume ratio of duplicate files and the preset first data volume ratio;
[0020] Among them, the first data volume ratio condition is that the data volume ratio of duplicate files is greater than the preset first data volume ratio and is less than or equal to the preset second data volume ratio; the second data volume ratio condition is that the data volume ratio of duplicate files is greater than the preset second data volume ratio.
[0021] Furthermore, the calculation formula for the data volume ratio of the duplicate files is:
[0022] ,
[0023] Among them, G is the data volume ratio of duplicate files, K1 is the data volume of duplicate files output by Iceberg, and K2 is the total data volume of the files.
[0024] Furthermore, the control module is connected to the data redistribution unit and the data update unit respectively, and is used to secondarily determine that the validity of the file merger does not meet the requirements when the success rate of the file merger is less than a preset success rate, and increase the update synchronization threshold of the data distribution version;
[0025] The increase range of the update synchronization threshold of the data distribution version is determined by the difference between the preset success rate and the success rate of the file merger.
[0026] Furthermore, the update synchronization threshold of the data distribution version means the maximum amount of data that triggers a data update synchronization condition during the data update process.
[0027] Furthermore, the control module is connected to the data update unit, and is used to determine that the real-time performance of data update does not meet the requirements when the average update duration of the data distribution version is greater than the preset duration, and reduce the update synchronization threshold of the increased data distribution version;
[0028] The reduction range of the update synchronization threshold of the data distribution version is determined by the difference between the average update duration of the data distribution version and the preset duration.
[0029] Compared with the prior art, the beneficial effect of the present invention lies in that the system of the present invention adjusts the storage capacity of the metadata collection and entry area according to the variance of the byte difference between the governance data and the metadata by setting a data collection module, a data processing module, a storage module and a control module. Due to long-term operation, the network interface fails, resulting in network delay or interruption, resulting in data interruption or loss during the entry process, which leads to excessive cleaning in order to ensure the consistency of the output data during the cleaning process, thereby reducing the byte amount of the output data. By increasing the storage capacity of the data entry buffer, the impact of data loss caused by network problems on the data entry process is reduced. By adjusting the number of concurrent tasks of Iceberg according to the proportion of the data volume of duplicate files, since Iceberg processes multiple data at the same time, when the amount of data processed at the same time is too large, the running memory proportion of some data is small, resulting in migration interruption, so that some data cannot be migrated to the target location, resulting in that when some data is copied to the target location, the data at the original location is not deleted, resulting in data duplication. By increasing the number of concurrent tasks of Iceberg, the data is divided into smaller blocks for processing, reducing the number of single tasks. The amount of data of the service is reduced, the memory usage and the calculation complexity are reduced, thereby improving the processing efficiency of the system. The update synchronization threshold of the data distribution version is initially adjusted according to the success rate of file merging. Since the collected data may be collected from different data sources, the same data may have different data structures, resulting in different update rates for the data. When Iceberg processes the data, there may be multiple operation modes to update the data, resulting in data conflicts, which makes it impossible to merge the files correctly. By increasing the update synchronization threshold of the data distribution version, the frequency of synchronization operations is reduced, and the possibility of data conflicts is reduced. By adjusting the update synchronization threshold of the data distribution version for the second time according to the average update time of the data distribution version, the update synchronization threshold of the data distribution version is too large, resulting in delayed update of the data, which reduces the real-time performance of the data in Iceberg. When the update rate of the data source is very fast, the version of the data in Iceberg lags behind the version in the data source. By reducing the update synchronization threshold of the data distribution version, the update rate of the data distribution version is improved, the accuracy of the data is guaranteed, and the stability of data governance is improved.
[0030] Furthermore, the system of the present invention adjusts the storage capacity of the metadata collection and entry area by setting a preset first variance and a preset second variance. Due to long-term operation, the network interface fails, resulting in network delays or interruptions, which causes data interruptions or losses during the entry process, and then leads to excessive cleaning during the cleaning process to ensure the consistency of the output data, thereby reducing the number of bytes of the output data. By increasing the storage capacity of the data entry buffer, the impact of data loss on the data entry process due to network problems is reduced, thereby further achieving improved stability in data governance.
[0031] Furthermore, the system of the present invention adjusts the number of concurrent tasks of Iceberg by setting a preset first data volume ratio and a preset second data volume ratio. Since Iceberg processes multiple data simultaneously, when the amount of data processed simultaneously is too large, the running memory ratio of some data is relatively small, resulting in migration interruption, making it impossible for some data to be migrated to the target location, resulting in that when some data is copied to the target location, the data at the original location is not deleted, resulting in data duplication. By increasing the number of concurrent tasks of Iceberg, the data is divided into smaller blocks for processing, reducing the data volume of a single task, reducing memory usage and calculation complexity, thereby improving the processing efficiency of the system, and further achieving improved stability for data governance.
[0032] Furthermore, the system of the present invention performs an initial adjustment on the update synchronization threshold of the data distribution version by setting a preset success rate. Since the collected data may be collected from different data sources, the same data may have different data structures, resulting in different data update rates. When Iceberg processes the data, there may be multiple operation modes to update the data, resulting in data conflicts, which in turn cause the files to be unable to be merged correctly. By increasing the update synchronization threshold of the data distribution version, the frequency of synchronization operations is reduced, the possibility of data conflicts is reduced, and the stability of data governance is further improved.
[0033] Furthermore, the system of the present invention performs secondary adjustment on the update synchronization threshold of the data distribution version by setting a preset time length. Since the update synchronization threshold of the data distribution version is too large, data update is delayed, which reduces the real-time performance of the data in Iceberg. As a result, when the data source is updated at a very fast rate, the version of the data in Iceberg lags behind the version in the data source. By reducing the update synchronization threshold of the data distribution version, the update rate of the data distribution version is increased, the accuracy of the data is guaranteed, and the stability of data governance is further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is an overall structural block diagram of the data governance implementation system based on Iceberg in an embodiment of the present invention;
[0035] Figure 2 It is a specific structural block diagram of a data processing module of a data governance implementation system based on Iceberg in an embodiment of the present invention;
[0036] Figure 3 A block diagram of a connection structure in which a data processing module and a data acquisition module are connected in a data governance implementation system based on Iceberg according to an embodiment of the present invention;
[0037] Figure 4 This is a connection structure block diagram of the data processing module and the control module of the data governance implementation system based on Iceberg in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0039] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0040] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.
[0041] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0042] See also Figure 1 , Figure 2 , Figure 3 as well as Figure 4As shown, they are respectively an overall structural block diagram of a data governance implementation system based on Iceberg according to an embodiment of the present invention, a specific structural block diagram of a data processing module, a connection structural block diagram of a data processing module connected to a data acquisition module, and a connection structural block diagram of a data processing module connected to a control module. A data governance implementation system based on Iceberg according to the present invention comprises:
[0043] Data collection module, used to collect metadata of files in the data lake;
[0044] a data processing module connected to the data acquisition module and used for processing the metadata according to Iceberg to output governance data, including a data redistribution unit for redistributing the derivative data output by preprocessing the metadata to output the derived data and a data update unit connected to the data redistribution unit for updating the data distribution version in Iceberg according to the derived data to output the governance data;
[0045] A storage module, which is connected to the data acquisition module and the data processing module respectively, and is used to store the metadata, the derivative data, the derived data and the governance data respectively;
[0046] A control module, which is respectively connected to the data acquisition module, the data processing module and the storage module, and is used to determine the data governance state according to the variance of the byte difference between the governance data and the metadata, determine the storage capacity of the metadata acquisition and input area according to the data governance state, or determine the accuracy of data redistribution according to the success rate of file merging, and determine the number of concurrent tasks of Iceberg or the update synchronization threshold of the data distribution version according to the accuracy of the data redistribution, and redetermine the update synchronization threshold of the data distribution version according to the average update time of the data distribution version under the preset synchronization condition;
[0047] The preset synchronization condition is that the data update unit updates the data distribution version according to the determined update synchronization threshold.
[0048] Specifically, metadata includes the data volume of files in the data lake, the storage space of files in the data lake, and the byte volume of metadata.
[0049] Specifically, the derived data includes the number of outliers in the metadata, the time when the metadata was changed, and the time when the metadata was accessed.
[0050] Specifically, the meaning of an outlier is data in the derived data that is different from the standard derived data in terms of byte quantity, data format, and data quantity.
[0051] Specifically, the derived data includes the byte amount of the derived data, the number of derived data partitions, and the storage capacity of the derived data.
[0052] Specifically, derived data partitions include processing time partitions, data type partitions, and processing data volume partitions.
[0053] Specifically, the data redistribution process includes: merging different files into small files, optimizing the data distribution, and redistributing the files originally scattered in different places in the cluster. When newly written files are collected, only the newly written files are redistributed.
[0054] Specifically, governance data includes the storage space of the metadata set, the data volume of the metadata set, and the metadata change time.
[0055] Specifically, the number of concurrent tasks of Iceberg means the maximum number of Iceberg tasks that Iceberg can process simultaneously.
[0056] Specifically, Iceberg is an open source data table format and processing engine that provides high-performance, scalable and reliable data storage and query solutions.
[0057] Specifically, duplicate files are files with the same name, storage space, and content.
[0058] Specifically, the meaning of data distribution version update is the process of updating the original data distribution version to a redistributed data distribution version according to the derived data by Iceberg.
[0059] In implementation, the system of the present invention is provided with a data collection module, a data processing module, a storage module and a control module, and the storage capacity of the metadata collection and entry area is adjusted according to the variance of the byte difference between the governance data and the metadata. Due to long-term operation, the network interface fails, resulting in network delay or interruption, resulting in data interruption or loss during the entry process, which leads to excessive cleaning in the cleaning process to ensure the consistency of the output data, thereby reducing the byte volume of the output data. By increasing the storage capacity of the data entry buffer, the impact of data loss caused by network problems on the data entry process is reduced. By adjusting the number of concurrent tasks of Iceberg according to the proportion of the data volume of duplicate files, since Iceberg processes multiple data at the same time, when the amount of data processed at the same time is too large, the running memory proportion of some data is small, resulting in migration interruption, so that some data cannot be migrated to the target location, resulting in that when some data is copied to the target location, the data at the original location is not deleted, resulting in data duplication. By increasing the number of concurrent tasks of Iceberg, the data is divided into smaller blocks for processing, the data volume of a single task is reduced, and the The memory usage and calculation complexity are reduced, thereby improving the processing efficiency of the system. The update synchronization threshold of the data distribution version is initially adjusted according to the success rate of file merging. Since the collected data may be collected from different data sources, the same data may have different data structures, resulting in different data update rates. When Iceberg processes the data, there may be multiple operation modes to update the data, resulting in data conflicts, which makes it impossible to merge the files correctly. By increasing the update synchronization threshold of the data distribution version, the frequency of synchronization operations is reduced, and the possibility of data conflicts is reduced. The update synchronization threshold of the data distribution version is adjusted for the second time according to the average update time of the data distribution version. Since the update synchronization threshold of the data distribution version is too large, the data is updated late, which reduces the real-time performance of the data in Iceberg. When the data source update rate is very fast, the version of the data in Iceberg lags behind the version in the data source. By reducing the update synchronization threshold of the data distribution version, the update rate of the data distribution version is improved, the accuracy of the data is guaranteed, and the stability of data governance is improved.
[0060] Specifically, the data processing module further includes a preprocessing unit for preprocessing the metadata to output derivative data.
[0061] Specifically, preprocessing includes data cleaning, data conversion, and data merging operations on metadata in sequence.
[0062] Specifically, the control module is connected to the data update unit, and is used to calculate the variance of the byte difference between the governance data and the metadata according to the byte amount of the governance data and the byte amount of the metadata in a number of governance cycles, and to determine that the stability of the data governance does not meet the requirements when the variance of the byte difference between the governance data and the metadata satisfies the first data governance state or the second data governance state;
[0063] Among them, the first data governance state is that the variance of the byte difference between the governance data and the metadata is greater than the preset first variance and less than or equal to the preset second variance; the second data governance state is that the variance of the byte difference between the governance data and the metadata is greater than the preset second variance.
[0064] It can be understood that the three intervals corresponding to the preset first variance and the preset second variance correspond to three situations respectively. The first situation is that the variance of the byte difference between the governance data and the metadata is less than or equal to the preset first variance, and it is determined that the stability of data governance meets the requirements; the second situation is that the variance of the byte difference between the governance data and the metadata is greater than the preset first variance and less than or equal to the preset second variance, and it is preliminarily determined that the accuracy of data redistribution does not meet the requirements, and a secondary determination is made on whether the accuracy of data redistribution meets the requirements based on the proportion of data volume of duplicate files; the third situation is that the variance of the byte difference between the governance data and the metadata is greater than the preset second variance, and the storage capacity of the metadata collection and entry area is increased. In practice, the preset first variance is generally selected in the range of [400Byte 2 , 500Byte 2 ], the default second variance is generally selected in the range of [550Byte 2 , 650Byte 2 ], when the preset second variance is less than 550Byte 2The corresponding influencing factors will change. For example, since Iceberg processes multiple data at the same time, when the amount of data processed at the same time is too large, the running memory of some data accounts for a small proportion, resulting in migration interruption, making it impossible for some data to be migrated to the target location, resulting in some data being copied to the target location, and the data at the original location is not deleted, resulting in data duplication. When the data is repeated, the data volume proportion of the duplicate files changes accordingly. Due to long-term operation, the network interface fails, resulting in network delays or interruptions, resulting in data interruption or loss during the entry process, and then resulting in excessive cleaning during the cleaning process to ensure the consistency of the output data, resulting in a reduction in the number of bytes of the output data. This is greater than the situation where Iceberg processes multiple data at the same time, when the amount of data processed at the same time is too large, the running memory of some data accounts for a small proportion, resulting in migration interruption, making it impossible for some data to be migrated to the target location, resulting in some data being copied to the target location, and the data at the original location is not deleted, resulting in data duplication.
[0065] Preferably, the first variance Q1 is preset to be 450 Byte 2 , preset second variance Q2=600Byte 2 .
[0066] Specifically, the variance of the byte difference between the governance data and the metadata is denoted as Q.
[0067] Specifically, the variance of the byte difference between the governance data and the metadata is the variance of the byte difference between the governance data and the metadata within several governance cycles. The calculation method of the variance of the byte difference between the governance data and the metadata is a conventional technical means well known to those skilled in the art, and therefore the calculation process of the variance of the byte difference between the governance data and the metadata will not be repeated here.
[0068] Specifically, the calculation formula for the byte difference between governance data and metadata is:
[0069] ,
[0070] Among them, F is the byte difference between governance data and metadata, E1 is the byte size of governance data, and E2 is the byte size of metadata.
[0071] In implementation, the system of the present invention determines the stability of data governance by setting a preset first variance and a preset second variance, thereby reducing the impact of decreased efficiency of data governance due to inaccurate judgment of the stability of data governance, and further improving the stability of data governance.
[0072] Specifically, the control module is connected to the data redistribution unit to preliminarily determine that the accuracy of the data redistribution does not meet the requirements when the variance of the byte difference between the governance data and the metadata only satisfies the first data governance state, and to make a secondary determination on whether the accuracy of the data redistribution meets the requirements based on the proportion of data volume of duplicate files.
[0073] Specifically, the control module is connected to the data collection module, and is used to increase the storage capacity of the metadata collection and input area when the variance of the byte difference between the governance data and the metadata only satisfies the second data governance state;
[0074] The increase in the storage capacity of the metadata collection and entry area is determined by the difference between the variance of the byte difference between the governance data and the metadata and a preset second variance.
[0075] Specifically, the calculation formula for the storage capacity of the increased metadata collection and entry area is:
[0076] ,
[0077] Among them, V' is the storage capacity of the metadata collection and entry area after the increase, V is the current storage capacity of the metadata collection and entry area, A is the minimum unit variance for adjusting the storage capacity of the metadata collection and entry area, and v is the storage capacity of the metadata collection and entry area when the variance of the byte difference between the governance data and the metadata is the minimum unit variance.
[0078] In practice, the value of A is generally 700 Bytes. 2 -750Byte 2 , preferably, the preferred embodiment of A is 720Byte 2 .
[0079] In implementation, the optional value range of v is 380MB-450MB. Preferably, considering that when the storage capacity of the metadata entry buffer is less than 400MB, it may cause buffer operation jams, the preferred embodiment of v is 400MB.
[0080] In implementation, the system of the present invention adjusts the storage capacity of the metadata collection and entry area by setting a preset first variance and a preset second variance. Due to long-term operation, the network interface fails, resulting in network delays or interruptions, which causes data interruptions or losses during the entry process, and then leads to excessive cleaning during the cleaning process to ensure the consistency of the output data, thereby reducing the number of bytes of the output data. By increasing the storage capacity of the data entry buffer, the impact of data loss on the data entry process due to network problems is reduced, thereby further achieving improved stability in data governance.
[0081] Specifically, the control module is connected to the data redistribution unit, and is used to secondarily determine that the accuracy of data redistribution does not meet the requirement when the data volume ratio of the duplicate files meets the first data volume ratio condition or the second data volume ratio condition, and to preliminarily determine that the effectiveness of file merging does not meet the requirement when the data volume ratio of the duplicate files only meets the second data volume ratio condition, and to secondarily determine whether the effectiveness of file merging meets the requirement according to the success rate of file merging;
[0082] The control module is connected to the data redistribution unit, and is used to increase the number of concurrent tasks of Iceberg when the data volume ratio of the duplicate files only meets the first data volume ratio condition;
[0083] Among them, the first data volume ratio condition is that the data volume ratio of duplicate files is greater than the preset first data volume ratio and is less than or equal to the preset second data volume ratio; the second data volume ratio condition is that the data volume ratio of duplicate files is greater than the preset second data volume ratio.
[0084] It can be understood that the three intervals corresponding to the preset first data volume ratio and the preset second data volume ratio correspond to three situations respectively. The first situation is that the data volume ratio of duplicate files is less than or equal to the preset first data volume ratio, and the secondary judgment that the accuracy of data redistribution meets the requirements; the second situation is that the data volume ratio of duplicate files is greater than the preset first data volume ratio and less than or equal to the preset second data volume ratio, and the number of concurrent tasks of Iceberg is increased; the third situation is that the data volume ratio of duplicate files is greater than the preset second data volume ratio, and it is preliminarily judged that the effectiveness of the file merger does not meet the requirements, and a secondary judgment is made on whether the effectiveness of the file merger meets the requirements based on the success rate of the file merger. In practice, the range of the preset first data volume ratio is generally [0.1, 0.15], and the range of the preset second data volume ratio is generally [0.17, 0.2]. When the selected value of the preset first data volume ratio exceeds 0.15, the corresponding influencing factors will change. For example, since the collected data may be collected from different data sources, the same data may have different data structures, resulting in different data update rates. When Iceberg processes the data, there may be multiple operation modes to update the data, resulting in data conflicts, which makes it impossible to merge the files correctly. When the files cannot be merged correctly, the success rate of the file merger decreases accordingly. Changes. Since Iceberg processes multiple data at the same time, when the amount of data processed at the same time is too large, the running memory of some data occupies a small proportion, resulting in migration interruption, making it impossible for some data to be migrated to the target location, resulting in that when some data is copied to the target location, the data at the original location is not deleted, resulting in data duplication. The impact is greater than that caused by the fact that the collected data may be collected from different data sources, resulting in different data structures of the same data, resulting in different data update rates, resulting in multiple operation modes to update the data when Iceberg processes the data, resulting in data conflicts, and thus causing the files to fail to merge correctly.
[0085] Preferably, the preset first data volume proportion P1=0.13, and the preset second data volume proportion P2=0.18.
[0086] Specifically, the data volume ratio of duplicate files is denoted as P.
[0087] In implementation, the system of the present invention performs a secondary judgment on the accuracy of data redistribution by setting a preset first data volume ratio and a preset second data volume ratio, thereby reducing the impact of decreased stability of data governance due to inaccurate secondary judgment on the accuracy of data redistribution, and further improving the stability of data governance.
[0088] Specifically, the calculation formula for the data volume ratio of the duplicate files is:
[0089] ,
[0090] Among them, G is the data volume ratio of duplicate files, K1 is the data volume of duplicate files output by Iceberg, and K2 is the total data volume of the files.
[0091] Specifically, the increase in the number of concurrent tasks of Iceberg is determined by the difference between the data volume ratio of duplicate files and the preset first data volume ratio.
[0092] Specifically, the calculation formula for the number of concurrent tasks of the enlarged Iceberg is:
[0093] ,
[0094] Among them, H' is the increased number of concurrent tasks of Iceberg, H is the current number of concurrent tasks of Iceberg, B is the minimum unit data volume ratio for adjusting the number of concurrent tasks of Iceberg, and h is the number of concurrent tasks of Iceberg when the data volume ratio of duplicate files is the minimum unit data volume ratio.
[0095] In practice, the value of B is generally 0.2-0.3, and preferably, the preferred embodiment of B is 0.25.
[0096] In implementation, the optional range of h is 100-150. Preferably, considering that when the number of concurrent tasks of Iceberg is greater than 120, it may cause delays in processing tasks, the preferred embodiment of h is 120.
[0097] In implementation, the system of the present invention adjusts the number of concurrent tasks of Iceberg by setting a preset first data volume ratio and a preset second data volume ratio. Since Iceberg processes multiple data simultaneously, when the amount of data processed simultaneously is too large, the running memory ratio of some data is small, resulting in migration interruption, making it impossible to migrate some data to the target location, resulting in that when some data is copied to the target location, the data at the original location is not deleted, resulting in data duplication. By increasing the number of concurrent tasks of Iceberg, the data is divided into smaller blocks for processing, reducing the data volume of a single task, reducing memory usage and calculation complexity, thereby improving the processing efficiency of the system, and further achieving improved stability for data governance.
[0098] Specifically, the control module is connected to the data redistribution unit and the data update unit respectively, and is used to secondarily determine that the validity of the file merger does not meet the requirements when the success rate of the file merger is less than the preset success rate, and increase the update synchronization threshold of the data distribution version.
[0099] It can be understood that the two intervals corresponding to the preset success rate correspond to two situations. The first situation is that the success rate of file merging is less than the preset success rate, and the update synchronization threshold of the data distribution version is increased; the second situation is that the success rate of file merging is greater than or equal to the preset success rate, and the effectiveness of the secondary judgment file merging meets the requirements. In practice, the preset success rate is generally selected in the range of [0.85, 1.0]. When the preset success rate is less than 0.85, the corresponding influencing factors will change. For example, since the collected data may be collected from different data sources, the same data may have different data structures, resulting in different data update rates. When Iceberg processes the data, there may be multiple operation modes to update the data, resulting in data conflicts, which makes it impossible to merge the files correctly.
[0100] Preferably, the preset success rate Y0=0.9.
[0101] Specifically, the success rate of file merging is recorded as Y.
[0102] Specifically, the calculation formula for the success rate of file merging is:
[0103] ,
[0104] Among them, S is the success rate of file merging, T1 is the number of files successfully merged, and T2 is the total number of files merged.
[0105] In implementation, the system of the present invention performs a secondary judgment on the effectiveness of file mergers by setting a preset success rate, thereby reducing the impact of decreased stability of data governance due to inaccurate secondary judgment on the effectiveness of file mergers, and further improving the stability of data governance.
[0106] Specifically, the increase range of the update synchronization threshold of the data distribution version is determined by the difference between the preset success rate and the success rate of the file merger.
[0107] Specifically, the calculation formula for the update synchronization threshold of the increased data distribution version is:
[0108] ,
[0109] Among them, L' is the increased update synchronization threshold of the data distribution version, L is the update synchronization threshold of the current data distribution version, C is the minimum unit success rate for adjusting the update synchronization threshold of the data distribution version, and l is the update synchronization threshold of the data distribution version when the success rate of file merging is the minimum unit success rate.
[0110] In practice, the value of C is generally 0.75-0.85, and preferably, the preferred embodiment of C is 0.8.
[0111] In implementation, the optional value range of l is 450MB-550MB. Preferably, considering that when the update synchronization threshold of the data distribution version is less than 450MB, the data distribution version may be updated untimely, the preferred embodiment of l is 450MB.
[0112] During implementation, the system of the present invention performs an initial adjustment on the update synchronization threshold of the data distribution version by setting a preset success rate. Since the collected data may be collected from different data sources, the same data may have different data structures, resulting in different data update rates. When Iceberg processes the data, there may be multiple operation modes to update the data, resulting in data conflicts, which in turn cause the files to be unable to be merged correctly. By increasing the update synchronization threshold of the data distribution version, the frequency of synchronization operations is reduced, the possibility of data conflicts is reduced, and the stability of data governance is further improved.
[0113] Specifically, the update synchronization threshold of the data distribution version means the maximum amount of data that triggers the data update synchronization condition during the data update process.
[0114] Specifically, the control module is connected to the data update unit to determine that the real-time performance of data update does not meet the requirements when the average update duration of the data distribution version is greater than a preset duration, and to reduce the update synchronization threshold of the increased data distribution version.
[0115] It can be understood that the two intervals corresponding to the preset duration correspond to two situations. The first situation is that the average update duration of the data distribution version is less than or equal to the preset duration, and the real-time update of the data is determined to meet the requirements; the second situation is that the average update duration of the data distribution version is greater than the preset duration, and the update synchronization threshold of the increased data distribution version is reduced. In practice, the preset duration is generally selected in the range of [0.3s, 0.8s]. When the selected value of the preset duration exceeds 0.8s, the corresponding influencing factors will change. For example, due to the excessively large update synchronization threshold of the data distribution version, the data is updated late, which reduces the real-time performance of the data in Iceberg. As a result, when the data source is updated very quickly, the version of the data in Iceberg lags behind the version in the data source.
[0116] Preferably, the preset time length R0=0.5s.
[0117] Specifically, the average update duration of the data distribution version is denoted as R.
[0118] Specifically, the calculation formula for the average update time of the data distribution version is:
[0119] ,
[0120] Among them, R is the average update time of the data distribution version, X a is the duration of the ath data distribution version update, n is the number of data distribution version updates, and n is a natural number greater than or equal to 1.
[0121] In implementation, the system of the present invention determines the real-time nature of data updates by setting a preset time length, thereby reducing the impact of decreased stability in data governance due to inaccurate determination of the real-time nature of data updates, and further improving the stability of data governance.
[0122] Specifically, the reduction range of the update synchronization threshold of the data distribution version is determined by the difference between the average update duration of the data distribution version and the preset duration.
[0123] Specifically, the calculation formula for the update synchronization threshold of the reduced data distribution version is:
[0124] ,
[0125] Wherein, L" is the reduced update synchronization threshold of the data distribution version, D is the minimum unit update duration for secondary adjustment of the update synchronization threshold of the data distribution version, and l' is the update synchronization threshold of the data distribution version when the average update duration of the data distribution version is the minimum unit update duration.
[0126] In practice, the value of D is generally 0.8s-1.2s. Preferably, the preferred embodiment of D is 0.8s.
[0127] In implementation, the optional range of l' value is 600MB-650MB. Preferably, considering that when the update synchronization threshold of the data distribution version is greater than 620MB, it may cause update jams, the preferred embodiment of l' is 620MB.
[0128] In implementation, the system of the present invention performs secondary adjustment on the update synchronization threshold of the data distribution version by setting a preset time. Since the update synchronization threshold of the data distribution version is too large, data update is delayed, which reduces the real-time performance of the data in Iceberg. As a result, when the data source is updated at a very fast rate, the version of the data in Iceberg lags behind the version in the data source. By reducing the update synchronization threshold of the data distribution version, the update rate of the data distribution version is increased, the accuracy of the data is guaranteed, and the stability of data governance is further improved.
[0129] Embodiment: This embodiment uses an Iceberg-based data governance implementation system to govern the data in the data lake. The control module adjusts the storage capacity of the metadata collection and entry area according to the difference between the variance of the byte difference between the governance data and the metadata and the preset second variance. The minimum unit variance for adjusting the storage capacity of the metadata collection and entry area is recorded as A, and the storage capacity of the metadata collection and entry area when the variance of the byte difference between the governance data and the metadata is the minimum unit variance is recorded as v, where A=720Byte 2 , v=400MB, V=500MB, Q=700Byte 2 , Q2=600Byte 2 .
[0130] Calculated .
[0131] In this embodiment 1, ΔQ=100 Byte is obtained 2 The control module determines that ΔQ>ΔQ0 and uses the preset first storage capacity adjustment coefficient to adjust the storage capacity of the metadata collection and input area to the second storage capacity, and calculates that V'=500MB×1.2=600MB.
[0132] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A data governance implementation system based on Iceberg, characterized in that: include: Data collection module, used to collect metadata of files in the data lake; a data processing module connected to the data acquisition module and used for processing the metadata according to Iceberg to output governance data, including a data redistribution unit for redistributing the derivative data output by preprocessing the metadata to output the derived data and a data update unit connected to the data redistribution unit for updating the data distribution version in Iceberg according to the derived data to output the governance data; A storage module, which is connected to the data acquisition module and the data processing module respectively, and is used to store the metadata, the derivative data, the derived data and the governance data respectively; A control module, which is respectively connected to the data acquisition module, the data processing module and the storage module, and is used to determine the data governance state according to the variance of the byte difference between the governance data and the metadata, and to determine the storage capacity of the metadata acquisition and entry area or the accuracy of data redistribution according to the data governance state, and to determine the number of concurrent tasks of Iceberg according to the accuracy of data redistribution or to determine the update synchronization threshold of the data distribution version according to the success rate of file merging, and to redetermine the update synchronization threshold of the data distribution version according to the average update time of the data distribution version under the preset synchronization condition; Wherein, the preset synchronization condition is that the data update unit updates the data distribution version according to the determined update synchronization threshold; The three intervals corresponding to the preset first variance and the preset second variance correspond to three situations respectively. The first situation is that the variance of the byte difference between the governance data and the metadata is less than or equal to the preset first variance, and it is determined that the stability of data governance meets the requirements; the second situation is that the variance of the byte difference between the governance data and the metadata is greater than the preset first variance and less than or equal to the preset second variance, and it is preliminarily determined that the accuracy of data redistribution does not meet the requirements, and a secondary determination is made on whether the accuracy of data redistribution meets the requirements based on the data volume ratio of duplicate files; the third situation is that the variance of the byte difference between the governance data and the metadata is greater than the preset second variance, and the storage capacity of the metadata collection and entry area is increased; in practice, the range of the preset first variance is [400Byte 2 , 500Byte 2 ], the default range of the second variance is [550Byte 2 , 650Byte 2 ], when the preset second variance is less than 550Byte 2 The corresponding influencing factors will change. Since Iceberg processes multiple data at the same time, when the amount of data processed at the same time is too large, the running memory of some data accounts for a small proportion, resulting in migration interruption, making it impossible for some data to be migrated to the target location, resulting in the data at the original location not being deleted when some data is copied to the target location, resulting in data duplication. When data is duplicated, the data volume proportion of duplicate files changes accordingly. Due to long-term operation, the network interface fails, resulting in network delays or interruptions, resulting in data interruption or loss during the input process, and then resulting in excessive cleaning during the cleaning process to ensure the consistency of the output data, resulting in a reduction in the number of bytes of the output data. This is greater than the impact caused by the fact that Iceberg processes multiple data at the same time, when the amount of data processed at the same time is too large, the running memory of some data accounts for a small proportion, resulting in migration interruption, making it impossible for some data to be migrated to the target location, resulting in the data at the original location not being deleted when some data is copied to the target location, resulting in data duplication. The control module is connected to the data redistribution unit, and is used to preliminarily determine whether the accuracy of data redistribution does not meet the requirements when the variance of the byte difference between the governance data and the metadata only meets the first data governance state, and to perform a secondary determination on whether the accuracy of data redistribution meets the requirements according to the data volume ratio of duplicate files; The control module is connected to the data collection module, and is used to increase the storage capacity of the metadata collection and input area when the variance of the byte difference between the management data and the metadata only satisfies the second data management state; The increase in the storage capacity of the metadata collection and entry area is determined by the difference between the variance of the byte difference between the governance data and the metadata and a preset second variance.
2. The Iceberg-based data governance implementation system according to claim 1, characterized in that: The data processing module further comprises a preprocessing unit for preprocessing the metadata to output derivative data.
3. The Iceberg-based data governance implementation system according to claim 2, characterized in that: The control module is connected to the data update unit, and is used to calculate the variance of the byte difference between the governance data and the metadata according to the byte amount of the governance data and the byte amount of the metadata in a number of governance cycles, and to determine that the stability of data governance does not meet the requirements when the variance of the byte difference between the governance data and the metadata satisfies the first data governance state or the second data governance state; Among them, the first data governance state is that the variance of the byte difference between the governance data and the metadata is greater than the preset first variance and less than or equal to the preset second variance; the second data governance state is that the variance of the byte difference between the governance data and the metadata is greater than the preset second variance.
4. The Iceberg-based data governance implementation system according to claim 3, characterized in that: The control module is connected to the data redistribution unit, and is used to preliminarily determine whether the accuracy of data redistribution meets the requirements when the variance of the byte difference between the governance data and the metadata only satisfies the first data governance state, and to make a secondary determination on whether the accuracy of data redistribution meets the requirements based on the proportion of data volume of duplicate files.
5. The Iceberg-based data governance implementation system according to claim 4, characterized in that: The control module is connected to the data collection module, and is used to increase the storage capacity of the metadata collection and input area when the variance of the byte difference between the management data and the metadata only satisfies the second data management state; The increase in the storage capacity of the metadata collection and entry area is determined by the difference between the variance of the byte difference between the governance data and the metadata and a preset second variance.
6. The Iceberg-based data governance implementation system according to claim 5, characterized in that: The control module is connected to the data redistribution unit, and is used to, when the data volume ratio of the duplicate files meets the first data volume ratio condition or the second data volume ratio condition, secondarily determine that the accuracy of the data redistribution does not meet the requirement, and, when the data volume ratio of the duplicate files only meets the second data volume ratio condition, preliminarily determine that the validity of the file merger does not meet the requirement, and secondarily determine whether the validity of the file merger meets the requirement according to the success rate of the file merger; The control module is connected to the data redistribution unit, and is used to increase the number of concurrent tasks of Iceberg when the data volume ratio of the duplicate files only meets the first data volume ratio condition; The increase in the number of concurrent tasks of Iceberg is determined by the difference between the data volume ratio of duplicate files and the preset first data volume ratio; Among them, the first data volume ratio condition is that the data volume ratio of duplicate files is greater than the preset first data volume ratio and is less than or equal to the preset second data volume ratio; the second data volume ratio condition is that the data volume ratio of duplicate files is greater than the preset second data volume ratio.
7. The Iceberg-based data governance implementation system according to claim 6, characterized in that: The calculation formula for the data volume ratio of the duplicate files is: , Among them, G is the data volume ratio of duplicate files, K1 is the data volume of duplicate files output by Iceberg, and K2 is the total data volume of the files.
8. The Iceberg-based data governance implementation system according to claim 7, characterized in that: The control module is connected to the data redistribution unit and the data update unit respectively, and is used to secondarily determine that the validity of the file merger does not meet the requirements when the success rate of the file merger is less than the preset success rate, and increase the update synchronization threshold of the data distribution version; The increase range of the update synchronization threshold of the data distribution version is determined by the difference between the preset success rate and the success rate of the file merger.
9. The Iceberg-based data governance implementation system according to claim 8, characterized in that: The update synchronization threshold of the data distribution version means the maximum amount of data that triggers a data update synchronization condition during the data update process.
10. The Iceberg-based data governance implementation system according to claim 9, characterized in that: The control module is connected to the data update unit, and is used to determine that the real-time performance of data update does not meet the requirements when the average update duration of the data distribution version is greater than the preset duration, and to reduce the update synchronization threshold of the increased data distribution version; The reduction range of the update synchronization threshold of the data distribution version is determined by the difference between the average update duration of the data distribution version and the preset duration.
