Real-time and offline business unified processing method and device based on big data technology

By unified processing of real-time and offline business data in the KAFKA cluster, the problems of repeated data processing and high development costs in the existing technology are solved, and the unification and efficiency improvement of data processing are achieved.

CN113407617BActive Publication Date: 2024-10-11TRAFFIC CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110711006.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-25
Publication Date
2024-10-11
Estimated Expiration
2041-06-25

AI Technical Summary

Technical Problem

In the existing technology, real-time analysis and mining and offline analysis and mining are processed separately, resulting in redundant data processing and calculation. Two separate programs need to be developed, which increases the development time cost and the data is not unified.

Method used

Write the business data collected in real time to the KAFKA cluster, process and integrate the data in the KAFKA cluster in a unified manner based on real-time and offline business requirements, and generate real-time and offline detailed data. The real-time data is used for real-time business analysis, and the offline data is stored for offline business processing. .

Benefits of technology

It avoids repeated data processing, saves development costs, unifies the data processing structure, and reduces the development time of analysis and mining functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113407617B_ABST
    Figure CN113407617B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for unified processing of real-time and offline services based on big data technology, including: writing real-time collected service data into a KAFKA cluster; processing and integrating the data in the KAFKA cluster based on real-time service requirements and offline service scope to obtain first detailed data of the real-time service and second detailed data corresponding to the offline service scope; performing analysis and processing corresponding to the real-time service on the first detailed data, and the second detailed data is used for subsequent analysis and processing corresponding to the offline service at a preset time. The method and device provided by the present invention avoid redundant calculations for repeated access processing of some data, and only need to develop a set of programs to uniformly access and process the data of real-time analysis and mining and offline analysis and mining, reducing the time cost of developing analysis and mining functions, and making the form structure of the access data processing of real-time and offline services unified after integration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data technology, and in particular to a method and device for unified processing of real-time and offline services based on big data technology. Background Art

[0002] In all walks of life, people are beginning to pay attention to the short-term and long-term uses of business data collected daily. For shopping websites, users' clicks, browsing and purchasing behaviors are crucial to forming accurate user portraits. For taxi-hailing apps, users' itinerary information is also crucial to predicting users' taxi needs in the future. Some data analysis and mining have very high requirements for real-time performance, such as the hot search list of social software and the hot news being viewed, which will update the click volume in real time, etc., while some data analysis and mining do not have high requirements for real-time performance. For example, the user portrait and user taxi behavior prediction mentioned above can be analyzed and mined on the collected data when the server is not busy. For example, shopping websites and taxi-hailing apps can analyze and mine user data collected and stored during the daytime in the early morning when the number of views and orders are low, while the business data of more business software is directly stored for future business analysis needs. For example, the demand for analysis and mining within the current business scope is only concentrated on 5 types, but as the company expands, there is business expansion or cross-company cooperation or participation in charity activities, etc., the company's previously stored business data may be re-pulled for analysis and mining of new business types. Therefore, businesses in all walks of life are constantly recording their business data. Some of them process and analyze real-time business to obtain real-time results for display, some store and wait for a specific period of time for offline business to pull certain data for analysis and mining to obtain results with low real-time requirements for display, and some only store for use by offline business that will be expanded in the future, providing potential value for analysis and mining.

[0003] At present, for streaming data and batch data, the traditional method mainly adopts the method of independent collection system, data analysis and mining system, that is, the real-time analysis and mining business of data and the offline analysis and mining business of data are divided into two independent lines, each performing their own collection, analysis and mining steps; this method needs to develop two sets of programs for collection, access and processing in the data collection and access stage and the data integration stage, so the direct problem is the redundancy of the development process, the increase in development time cost and the increase in environmental resource requirements, and there is also the disadvantage of non-uniform data.

[0004] Therefore, how to avoid the existing separate processing of real-time analysis and mining and offline analysis and mining of collected data, which leads to repeated processing and redundant calculation of some data, and the need to develop two separate programs to access and process the data of real-time analysis and mining and offline analysis and mining respectively, which increases the development time cost of the analysis and mining functions, and the data is not unified, is still a problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0005] The present invention provides a real-time and offline business unified processing method and device based on big data technology, which is used to solve the existing problem that the real-time analysis and mining of collected data and the offline analysis and mining are processed separately, resulting in repeated processing and calculation redundancy of part of the data, and two sets of separate programs need to be developed to access and process the data of the real-time analysis and mining and the offline analysis and mining respectively, which increases the development time cost of the analysis and mining function and the problem of data non-unification. The real-time collected business data is written into a KAFKA cluster, and then the data in the KAFKA cluster is uniformly processed and integrated based on the real-time business needs and the offline business needs to obtain detailed data, a part of the detailed data is used as the first detailed data for the analysis and mining of the real-time business, and another part of the detailed data is screened out from the detailed data as the second detailed data for the analysis and mining of the offline business, wherein the first detailed data directly enters the analysis and processing link of the corresponding real-time business, is analyzed and mined to obtain the analysis result of the corresponding real-time business, and the second detailed data is stored as a database detailed wide table, waiting to be obtained by the offline business request, and then is analyzed and mined to obtain the analysis result of the corresponding offline business. In this way, the steps for processing and integrating collected data in real-time business and offline business are merged and unified, avoiding the duplication of developing two sets of programs to process and integrate part of the collected data for real-time business and offline business respectively. The data collected in the real-time business can be directly stored in the database detail wide table after processing and integration, avoiding the need for processing and integration again when the offline business needs to use the same data, and the integration processing of the offline business is also merged into the integration processing of the real-time business, avoiding the development of two sets of programs for access processing of real-time business and offline business respectively, saving development costs, and unifying the formal structure of access data processing and integration in real-time business and offline business.

[0006] The present invention provides a method for unified processing of real-time and offline services based on big data technology, comprising:

[0007] Write the real-time collected business data into the KAFKA cluster;

[0008] Processing and integrating the data in the KAFKA cluster based on real-time business requirements and offline business scope to obtain first detailed data of the real-time business and second detailed data corresponding to the offline business scope;

[0009] The first detailed data is analyzed and processed corresponding to the real-time business, and the second detailed data is used for subsequent corresponding analysis and processing of the offline business at a preset time.

[0010] According to a unified processing method for real-time and offline services based on big data technology provided by the present invention, the data in the KAFKA cluster is processed and integrated based on real-time service requirements and offline service scope to obtain first detailed data of the real-time service and second detailed data corresponding to the offline service scope, including:

[0011] Determine the attribute dimensions after data processing and integration based on real-time business needs and offline business scope;

[0012] Extracting, converting and dimensionally associating the data in the KAFKA cluster based on the attribute dimension to obtain processed and integrated detailed data;

[0013] The first detailed data corresponding to the real-time service is filtered out from the detailed data, and the second detailed data corresponding to the offline service scope is filtered out from the detailed data.

[0014] According to a unified real-time and offline business processing method based on big data technology provided by the present invention, the extraction conditions of the extraction operation are determined based on the attribute dimension, the type of associated data corresponding to the target data in the conversion operation is determined based on the attribute dimension, and the dimension association operation is used to generate a view table of the associated and integrated data.

[0015] According to a unified real-time and offline business processing method based on big data technology provided by the present invention, the data in the KAFKA cluster is extracted, converted and dimensionally associated based on the attribute dimension to obtain the processed and integrated detailed data, including:

[0016] Based on the manually written target script statements on the preset Web streaming platform, the Flink computing framework is controlled to extract, transform and dimensionally associate the data in the KAFKA cluster to obtain the processed and integrated detailed data;

[0017] The target script statement is an SQL statement including the instructions for extraction, conversion and dimension association processing, which is packaged by the preset Web streaming platform and uploaded to the Flink computing framework for conversion by the Flink computing framework into a Flink statement for execution.

[0018] According to a unified real-time and offline business processing method based on big data technology provided by the present invention, the preset Web streaming platform includes topic data in a pre-bound and associated KAFKA cluster, and pre-packaged functional modules;

[0019] Correspondingly, the process of manually writing the target script statement includes:

[0020] Manual configuration is performed on the processing template statement formed based on the subject data and the functional module to obtain the target script statement.

[0021] According to a method for unified processing of real-time and offline services based on big data technology provided by the present invention, the first detailed data corresponding to the real-time service is screened out from the detailed data, including:

[0022] Filtering out first detailed data corresponding to the real-time business from the detailed data;

[0023] A KAFKA real-time detail wide table is created, and the first detail data is imported into the KAFKA real-time detail wide table for subsequent analysis and processing of the real-time business.

[0024] According to a method for unified processing of real-time and offline services based on big data technology provided by the present invention, the step of filtering out second detailed data corresponding to the offline service scope from the detailed data includes:

[0025] Filtering out second detailed data corresponding to the offline business scope from the detailed data;

[0026] Creating an offline real-time detailed wide table, and importing the second detailed data into the offline real-time detailed wide table for subsequent analysis and processing of the offline business;

[0027] The offline real-time detail wide table is a HIVE real-time detail wide table or a HDFS (Hadoop Distributed File System) real-time detail wide table.

[0028] The present invention also provides a real-time and offline business unified processing device based on big data technology, comprising:

[0029] The writing unit is used to write the real-time collected business data into the KAFKA cluster;

[0030] A unified integration unit, used for processing and integrating the data in the KAFKA cluster based on the real-time business requirements and the offline business scope, to obtain first detailed data of the real-time business and second detailed data corresponding to the offline business scope;

[0031] The branch unit is used to perform analysis and processing corresponding to the real-time business on the first detailed data, and the second detailed data is used for subsequent analysis and processing corresponding to the offline business at a preset time.

[0032] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for unified processing of real-time and offline business based on big data technology as described in any one of the above are implemented.

[0033] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described methods for unified processing of real-time and offline business based on big data technology.

[0034] The real-time and offline business unified processing method and device based on big data technology provided by the present invention writes the real-time collected business data into the KAFKA cluster; processes and integrates the data in the KAFKA cluster based on the real-time business requirements and the offline business scope to obtain the first detailed data of the real-time business and the second detailed data corresponding to the offline business scope; performs analysis and processing corresponding to the real-time business on the first detailed data, and the second detailed data is used for subsequent analysis and processing corresponding to the offline business at a preset time. Since the steps of processing and integrating the collected data in the real-time business and the offline business are merged and unified, the duplication of developing two sets of programs to process and integrate part of the collected data for the real-time business and the offline business respectively is avoided. The data collected in the real-time business can be directly stored in the database detailed wide table after processing and integration, avoiding another processing and integration when the offline business needs to use the same data, and the integration processing of the offline business is also merged into the integration processing of the real-time business, avoiding the development of two sets of access processing programs for the real-time business and the offline business respectively, saving development costs, and unifying the formal structure of the access data processing and integration in the real-time business and the offline business. Therefore, the method and device provided by the present invention avoid redundant calculations for repeated access processing of some data, and only need to develop a set of programs to uniformly access and process the data of real-time analysis and mining and offline analysis and mining, thereby reducing the development time cost of the analysis and mining functions and making the integrated form structure of the access data processing of real-time and offline businesses unified. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 Offline business and real-time business processing flow chart provided by existing technologies;

[0037] Figure 2 A flowchart of a method for unified processing of real-time and offline services based on big data technology provided by the present invention;

[0038] Figure 3 A schematic diagram of an operation instruction script for extracting a real-time driving log table structure provided by the present invention;

[0039] Figure 4 A schematic diagram of an operation instruction script for creating station and platform dimension tables provided by the present invention;

[0040] Figure 5 An example diagram of an implementation instruction script for the process of forming the driving detail view table data provided by the present invention;

[0041] Figure 6 An example diagram of an implementation instruction script for the KAFKA real-time wide table creation, delayed vehicle data generation and import process provided by the present invention;

[0042] Figure 7 An example diagram of an implementation instruction script for creating a detailed wide table based on HIVE and importing delayed vehicle data provided by the present invention;

[0043] Figure 8 A schematic diagram of the process of the unified collection and integration method of rail transit driving log data based on the batch-stream integrated big data technology provided by the present invention;

[0044] Fig. 9 A schematic diagram of the structure of a unified real-time and offline business processing device based on big data technology provided by the present invention;

[0045] Fig.10 A schematic diagram of the physical structure of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] The existing real-time analysis and mining and offline analysis and mining of collected data generally have the problem of repeated processing and computational redundancy of some data due to separate processing, and the need to develop two separate programs to access and process the data of real-time analysis and mining and offline analysis and mining respectively, which increases the development time cost of the analysis and mining function and the problem of data non-unification. Figure 1-Figure 7The present invention describes a method for unified processing of real-time and offline services based on big data technology.

[0048] Here, we first review the processes of separate processing of real-time analysis and mining and offline analysis and mining of collected data in the prior art. Figure 1 Offline business and real-time business processing flow chart provided by existing technology, such as Figure 1 As shown in the figure, in traditional data analysis and mining, offline services and real-time services are divided into two sets of access processing procedures. The left side of the dotted line represents the process of offline services. Figure 1 The offline business process shown in the figure defaults to a database or storage module for storing real-time collected data. First, the data in the database or storage module for storing collected data is pulled and accessed through a scheduled batch data collection system. Then, a batch computing framework specifically developed to process offline pulled data is used to extract, transform, and dimensionally associate the pulled data. Then, an offline detailed wide table is generated. The data in the offline detailed wide table is used for subsequent offline data analysis and mining.

[0049] Here we explain extraction, conversion and dimension association. Extraction is to extract specific data related to offline business from the pulled data based on offline business. Usually, it is necessary to set corresponding extraction conditions (i.e., query conditions) according to offline business, and to find data useful for offline business from the large amount of pulled data. Then, data conversion is performed, that is, to associate the extracted data with local related data, and determine the data type that needs to be associated. For example, a shopping website needs to make a portrait of people who spend more than 2,000 yuan on clothing every month. The extraction condition is that the monthly clothing consumption exceeds 2,000 yuan. Data conversion is to integrate the extracted user information. The user information includes both the basic user information stored locally, such as age, registered email address, and gender, and the information that needs to be extracted from the large amount of pulled data, such as the number of views on the shopping website every day, the browsing time on the shopping website every day, and the recent consumption of clothing related to the user (such as cosmetics, etc.). These all belong to data conversion. The final dimension association is to insert the relevant data into a detailed wide table with the user account or user name as the directory, and generate a view table of the associated and integrated data.

[0050] Figure 1 The right side of the dotted line shows the real-time business flow chart. Figure 1The real-time business process shown in the figure first collects business data in real time through the real-time data monitoring system, and then uses the streaming computing framework to write the data collected by the real-time data monitoring system in real time, and uses the streaming computing framework specifically developed to process real-time data pulling to perform extraction, transformation and dimension association processing. The extraction, transformation and dimension association operations in this streaming computing framework specifically developed to process real-time data pulling are performed by developers by writing corresponding codes after determining the specific needs of the real-time business. Finally, the generated real-time detailed wide table consisting of relevant data specifically used for corresponding real-time business analysis and mining is sent to the real-time data analysis and mining module for corresponding real-time business analysis and mining.

[0051] Depend on Figure 1 It can be seen that for streaming data and batch data, the traditional method mainly adopts the method of independent collection system, data analysis and mining system. This method needs to develop two sets of programs for collection, access and processing in the data collection and access stage and the data integration stage. The direct problem is the redundancy of the development process, the increase in development time cost and the increase in environmental resource requirements. At the same time, there is also the disadvantage of non-uniform data.

[0052] Figure 2 A flowchart of a method for unified processing of real-time and offline services based on big data technology provided by the present invention is shown in FIG. Figure 2 As shown, the method includes:

[0053] Step 210, write the real-time collected business data into the KAFKA cluster.

[0054] Optionally, the unified processing method of real-time and offline services based on big data technology provided by the present invention provides a function of unified access processing of offline services and real-time services. First, the business data collected by the real-time monitoring system is written into the KAFKA cluster, that is, all collected data is uniformly connected to the KAFKA cluster. Here is a brief introduction to the KAFKA cluster. The KAFKA cluster is a distributed messaging system with the characteristics of high-level scalability and high throughput. In the KAFKA cluster, there is no concept of a "central master node" and all nodes in the cluster are equal. Some concepts in KAFKA are introduced (which will be covered below): 1. Topic: Messages can be classified in KAFKA. Each type of message is called a topic. Consumers can process different topics differently. This topic will correspond to a collection of business data of different business types in real-time or offline business below; 2. Broker: Each broker is a KAFKA service instance, and multiple brokers constitute a KAFKA cluster. Messages published by producers will be stored in the broker, and consumers will pull messages from the Broker for consumption; 3. Producer: Responsible for producing messages and sending them to Broker; 4. Consumer: Responsible for consuming topic messages in Broker. It should be noted here that the business data can be data from different fields, such as user behavior data of shopping websites, line driving log data in rail transit systems, etc., and there is no specific limitation here.

[0055] Step 220: Process and integrate the data in the KAFKA cluster based on the real-time business requirements and the offline business scope to obtain first detailed data of the real-time business and second detailed data corresponding to the offline business scope.

[0056] Optionally, a function of unified access processing of offline services and real-time services provided by the present invention requires processing and integration of data collected and stored in the KAFKA cluster. The processing and integration needs to be carried out according to certain rules, and the certain rules are determined based on real-time business requirements and offline business scope. For example, if the business data is line driving log data collected in real time in the rail transit system and then stored in the KAFKA cluster, and the real-time business requirement is to analyze and mine the information of early and late trains, and the offline business scope includes statistical train failure causes and passenger flow analysis, then the certain rule needs to use the delayed train as a query condition to extract all relevant information of the early and late trains from the data stored in the KAFKA cluster, and it is also necessary to use the train failure and passenger flow interval as query conditions to extract train failure information and passenger flow information from the data stored in the KAFKA cluster. The above-mentioned extraction, conversion and dimension association involving the specified query conditions are all fine-grained processing and integration; other data in the KAFKA cluster can be coarse-grained according to the offline business that may be expanded in the future. The extraction, conversion and dimension association operations are performed, and the corresponding detailed data is prepared in advance for the offline business that may be expanded in the future. Although the granularity is relatively coarse, it can be further extracted when it is needed in the future. In general, the processing integration is completed in advance together with the real-time business, which can reduce the amount of calculation globally and avoid multiple processing and integration of the same data. Therefore, the first detailed data is the relevant data corresponding to the current real-time business needs, and the second detailed data includes all the data pulled from the KAFKA cluster, but the second detailed data is generated according to a unified processing and integration. In addition to the relevant data corresponding to the current offline business needs, the second detailed data also includes coarser-grained relevant data corresponding to the offline business needs that may be expanded in the future. Therefore, the offline business scope is used to summarize the current offline business and the offline business that may be expanded in the future.

[0057] It should be noted here that the first detail data and the second detail data are detail wide table data with unified structure. The only difference is that the first detail data will be stored in the KAFKA cluster in the form of streaming data to form a KAFKA real-time detail wide table, so that subsequent real-time business can directly pull it for corresponding analysis and mining, while the second detail data will be separated and batched into the database to form a database detail wide table, so that subsequent offline business can directly pull it for corresponding analysis and mining.

[0058] Step 230: Perform analysis and processing corresponding to the real-time business on the first detailed data, and the second detailed data is used for subsequent analysis and processing corresponding to the offline business at a preset time.

[0059] Optionally, the first detailed data is directly pulled out as a real-time business of the consumer for consumption, and the first detailed data is processed by the analysis and mining corresponding to the real-time business, while the second detailed data is stored as a database detailed wide table, waiting for the corresponding offline business to pull it at a preset time, and the pulled second detailed data is processed by the analysis and mining corresponding to the offline business. That is, after the detailed data is generated through unified processing and integration, a branch process is entered, one branch corresponds to the real-time business, and the streaming first detailed data is pulled in real time for analysis and mining of the real-time business, and the other branch corresponds to the offline business, and the second detailed data is separated and batched and stored in the database to form a database detailed wide table, waiting for the analysis time corresponding to the offline business, and the offline business pulls the database detailed wide table stored in the database for analysis and mining.

[0060] The method provided by the present invention writes the real-time collected business data into a KAFKA cluster; processes and integrates the data in the KAFKA cluster based on the real-time business requirements and the offline business scope, and obtains the first detailed data of the real-time business and the second detailed data corresponding to the offline business scope; performs analysis and processing corresponding to the real-time business on the first detailed data, and the second detailed data is used for subsequent analysis and processing corresponding to the offline business at a preset time. Since the steps of processing and integrating the collected data in the real-time business and the offline business are merged and unified, the duplication of developing two sets of programs to process and integrate part of the collected data for the real-time business and the offline business respectively is avoided. The data collected in the real-time business can be directly stored in the database detailed wide table after processing and integration, avoiding another processing and integration when the offline business needs to use the same data, and the integration processing of the offline business is also merged into the integration processing of the real-time business, avoiding the development of two sets of programs for access processing for the real-time business and the offline business respectively, saving development costs, and unifying the formal structure of the access data processing and integration in the real-time business and the offline business. Therefore, the method provided by the present invention avoids redundant calculations for repeated access processing of some data, and only requires the development of a set of programs to uniformly access and process the data of real-time analysis and mining and offline analysis and mining, thereby reducing the development time cost of the analysis and mining functions and unifying the formal structure of the integrated access data processing of real-time and offline businesses.

[0061] Based on the above embodiment, in the method, the data in the KAFKA cluster is processed and integrated based on the real-time business requirements and the offline business scope to obtain the first detailed data of the real-time business and the second detailed data corresponding to the offline business scope, including:

[0062] Determine the attribute dimensions after data processing and integration based on real-time business needs and offline business scope;

[0063] Extracting, converting and dimensionally associating the data in the KAFKA cluster based on the attribute dimension to obtain processed and integrated detailed data;

[0064] The first detailed data corresponding to the real-time service is filtered out from the detailed data, and the second detailed data corresponding to the offline service scope is filtered out from the detailed data.

[0065] Optionally, it is further defined how to process and integrate the data in the KAFKA cluster according to the real-time business requirements and the scope of the offline business, and how to determine the processing and integration rules according to the real-time business requirements and the scope of the offline business. In the unified processing and integration function of the data collected by the real-time business and the data collected by the offline business provided by the present invention, the processing and integration function also needs to be determined according to the real-time business needs and the offline business scope, or the business data is explained as the driving log data in the rail transit system. If the real-time business needs to determine the early and late conditions of all running trains in real time, then the attribute dimensions of the relevant data that need to be extracted include driving log data, station dimension table and platform dimension table, so that the early and late conditions of each early and late train can be specifically sent to the corresponding station and platform. Therefore, after determining that the real-time business demand is to broadcast the early and late information of the train in real time at the corresponding station platform, the attribute dimensions after processing and integration corresponding to the real-time business can be determined as driving log data, station dimension table and platform dimension table. Then, the extraction, conversion and dimension association operations in the processing and integration process can be determined according to the required driving log data, station dimension table and platform dimension table to set the corresponding extraction query conditions, association methods and the view table form of the detailed data formed by the integration. Similarly, for offline business, the attribute dimensions of the offline business after fixed data processing and integration are also determined first. If the offline business is to count the number of delayed trains based on dimensions such as year, month, day, station and vehicle, then the corresponding attribute dimensions are train driving log data, station dimension table and platform dimension table. The extraction, conversion and dimension association operations in the corresponding integration processing process can be determined according to the required driving log data, station dimension table and platform dimension table to set the corresponding extraction query conditions (for example, the delay of train A in a certain month, the delay of train B at a certain platform in a certain year), association method and the view table form of the detailed data formed by the integration.

[0066] After the data in the KAFKA cluster is extracted, converted and dimensionally associated according to the processing integration rules determined by the real-time business needs and the offline business scope, a detailed data set is obtained. Then, the first detailed data that will be used by the real-time business immediately is selected from the detailed data set, and the confirmed offline detailed data that will be used by the current offline business at the corresponding time in the future and the suspected offline detailed data that will be used by the new offline business that may be expanded in the future are selected from the detailed data set to form the second detailed data, so as to provide the processed and integrated detailed data for the existing and future newly expanded offline businesses, saving the steps of offline business analysis and mining. The first detailed data is the relevant data corresponding to the current real-time business needs, and the second detailed data includes all the data pulled from the KAFKA cluster, but the second detailed data is generated according to the unified processing and integration. In addition to the relevant data corresponding to the current offline business needs, the second detailed data also includes the relevant data corresponding to the offline business needs with a coarser granularity and the offline business needs that may be expanded in the future, so the offline business scope is used to summarize the current offline business and the offline business that may be expanded in the future.

[0067] Based on the above embodiment, in this method, the extraction conditions of the extraction operation are determined based on the attribute dimension, the type of associated data corresponding to the target data in the conversion operation is determined based on the attribute dimension, and the dimension association operation is used to generate a view table of the associated and integrated data.

[0068] Optionally, the specific actions of extraction, conversion and dimension association operations in the processing integration are further defined. The first thing to determine in the extraction operation is to extract the data object. Therefore, it is necessary to find the query condition of the target data object according to the attribute dimension, and then use the query condition to extract the target data object from the streaming big data in the KAFKA cluster. In the conversion operation, it is necessary to determine the type of associated data corresponding to the target data in the conversion operation based on the attribute dimension. The dimension association operation is used to generate a view table of the associated integrated data. The following is still an example of the business data as the driving log data in the rail transit system to illustrate the processing and integration rules of a real-time business that broadcasts the early and late information of the train at the corresponding station platform: First, extract the early and late schedulediff (3-digit delay, 4-digit serious delay) and the arrival mark trainarrflg (1 means the train has arrived at the station and stopped, 3 means the train has left the station) data from the driving log; secondly, the extracted data is associated with the station dimension table and the platform dimension table join to obtain unified detailed data; finally, the integrated unified detailed data is stored in the tmp_trainlog_with view table.

[0069] Based on the above embodiment, in the method, the data in the KAFKA cluster is extracted, converted and dimensionally associated based on the attribute dimension to obtain the processed and integrated detailed data, including:

[0070] Based on the manually written target script statements on the preset Web streaming platform, the Flink computing framework is controlled to extract, transform and dimensionally associate the data in the KAFKA cluster to obtain the processed and integrated detailed data;

[0071] The target script statement is an SQL statement including the instructions for extraction, conversion and dimension association processing, which is packaged by the preset Web streaming platform and uploaded to the Flink computing framework for conversion by the Flink computing framework into a Flink statement for execution.

[0072] Specifically, in the prior art, since offline business and real-time business are processed separately, for the extraction, conversion, dimension association and integration of each into detailed data stage, the offline batch storage computing framework used in offline business is MapReduce, Spark, Hive, etc., and the computing framework used in real-time business is Storm, Flink, etc. Different from the prior art, the present invention defines the table structure script based on the preset Web streaming platform built by itself, and can bind and associate KAFKA theme data as long as it is defined according to the Flink syntax rules, so as to achieve the effect of real-time monitoring and acquisition of KAFKA driving theme data. Specifically, the developer writes the operation code that can implement the extraction, conversion and dimension association operations in a specific real-time business on the preset Web streaming platform by creating a new processing integration task, and obtains the target script language. For the edited target script language, the preset Web streaming platform will package it and upload it to the Flink computing framework. The Flink computing framework converts the script language obtained after unpacking into the Flink language and then executes the instructions therein, which include extracting, converting and dimensionally associating the corresponding data in the KAFKA cluster to form detailed data. The process of packaging the target script statements by the preset Web streaming platform includes the backend system of the Web streaming platform automatically packaging the target script statements and converting them into a DAG graph recognized by the Flink framework engine. The above content specifically describes the implementation method of uniformly extracting, converting and dimensionally associating the collected data for real-time business and offline business.

[0073] Based on the above embodiment, in this method, the preset Web streaming platform includes topic data in a pre-bound and associated KAFKA cluster, and a pre-packaged functional module;

[0074] Correspondingly, the process of manually writing the target script statement includes:

[0075] Manual configuration is performed on the processing template statement formed based on the subject data and the functional module to obtain the target script statement.

[0076] Optionally, since the preset Web streaming platform built by the R&D personnel enables developers to write scripts using SQL statements on the platform, the script implements the extraction, conversion and dimension association operations of the big data in the KAFKA cluster by defining the table structure, and the preset Web streaming platform can bind and associate the KAFKA topic data according to the Flink grammar rule definition, so as to achieve the effect of real-time monitoring and acquisition of the KAFKA driving topic data. When the developer actually writes the script on the preset Web streaming platform, since the topic data in the KAFKA cluster is pre-bound and associated on the preset Web streaming platform, and the pre-packaged functional modules are integrated, the script only needs to call the processing template statement and then write the configuration information to obtain the target script statement. The embodiment of the present invention provides a method of optimizing the platform in the process of building a preset Web streaming platform. By encapsulating the functional modules and binding the associated KAFKA topics, the processing template statements can be present on the platform for the developer to directly splice and configure the template statements to complete the target script statements, thereby reducing the coding workload of the developer.

[0077] Based on the above embodiment, in the method, the step of filtering out the first detailed data corresponding to the real-time service from the detailed data includes:

[0078] Filtering out first detailed data corresponding to the real-time business from the detailed data;

[0079] A KAFKA real-time detail wide table is created, and the first detail data is imported into the KAFKA real-time detail wide table for subsequent analysis and processing of the real-time business.

[0080] Optionally, the detailed data used by the real-time business in the obtained detailed data is used as the first detailed data. For real-time business, the solution of the present invention is to store the real-time data source based on KAFKA, that is, to limit the storage form of the first detailed data, and directly store it in the real-time detailed wide table of the existing KAFKA cluster. The corresponding connector should be configured as upsert-kafka type based on the storage of real-time data source by kafka, so that the table supports reading and writing operations on the data. Taking the business data in the previous text as the line driving log data collected in real time in the rail transit system and then stored in the KAFKA cluster, and the real-time business demand is to analyze and mine the information of early and late trains as an example, firstly, the big data in the KAFKA cluster is pulled, converted and dimensionally associated. Figure 3 The schematic diagram of the operation instruction script for extracting the real-time driving log table structure provided by the present invention is as follows: Figure 3As shown, the created ods_trainlog table structure needs to be determined according to the Kafka topic data structure and field type, wherein the created connector is of Kafka type, and the Kafka topic name associated with the table is ods_trainlog; in order to reconstruct the detailed wide table, in addition to the above ods_trainlog real-time driving log data table, the method of the present invention needs to construct the DIM dimension table in advance, and the dimension data of the dimension table can be stored in a structured database such as MySQL as needed. Figure 4 A schematic diagram of an operation instruction script for creating a station and platform dimension table provided by the present invention, Figure 4 The script languages ​​on the left and right sides are station dimension table and platform dimension table respectively. The scheme of the present invention takes the DIM dimension table required for constructing the wide table of detailed data of the driving log as an example to illustrate. The dimension table data is stored in the JDBC type library. The number and type of table fields must correspond one-to-one with those in the JDBC library. The specific detailed scripts are as follows: Figure 4 shown.

[0081] In the integration of unified preliminary data, the offline business and real-time business solutions provided by the prior art are based on an independent set of programs to implement the corresponding offline business needs and real-time business needs in the early data extraction, conversion, and association stages. Compared with the solutions in the prior art, the present invention only needs to be developed based on FlinkSQL scripts to uniformly integrate the preliminary data and form unified detailed wide table data. Figure 5 The example diagram of the implementation instruction script of the driving detail view table data formation process provided by the present invention is as follows: Figure 5 As shown, the operation process of the present invention for unified processing of the extraction, conversion and integration stages of the early data is as follows:

[0082] First, extract the scheduled and delayed train time (schedulediff, which is a 3-digit delay and a 4-digit severe delay) and arrival mark trainarrflg (1 means the train has arrived and stopped, 3 means the train has left) data from the driving log; secondly, associate the extracted data with the station dimension table and the platform dimension table join to obtain unified detailed data; finally, integrate the unified detailed data and store it in the tmp_trainlog_with view table.

[0083] Figure 6 The example diagram of the implementation instruction script for the KAFKA real-time wide table creation, delayed vehicle data generation and import process provided by the present invention is as follows: Figure 6As shown in the figure, the corresponding connector for storing real-time data sources based on Kafka should be configured as upsert-kafka type so that the table supports reading and writing operations on data; according to the current real-time business requirements of the driving log, the real-time statistics of the number of delayed vehicles per minute are required, so the TUMBLE sliding window is used to separate the window data. At the same time, to ensure the uniqueness of the data, this example sets the PRIMARY KEY to time_window_start, time_window_end, trainid, servenumber and ordernumber.

[0084] Based on the above embodiment, in the method, the step of filtering out the second detailed data corresponding to the offline business scope from the detailed data includes:

[0085] Filtering out second detailed data corresponding to the offline business scope from the detailed data;

[0086] Creating an offline real-time detailed wide table, and importing the second detailed data into the offline real-time detailed wide table for subsequent analysis and processing of the offline business;

[0087] The offline real-time detail wide table is a HIVE real-time detail wide table or an HDFS real-time detail wide table.

[0088] Optionally, for the second detailed data corresponding to the offline business scope, a corresponding offline detailed wide table is first created in the specified database, and then the second detailed data is separated and stored in batches in the offline detailed wide table in the database. Here, the type of the specified database is limited to HIVE or HDFS. Figure 7 This is an example diagram of an implementation instruction script for creating a detailed wide table based on HIVE and importing delayed vehicle data provided by the present invention, such as Figure 7 As shown in the figure, for the business needs of offline driving data analysis and mining, batch data can be separated and stored in HIVE or HDFS. The current business needs of offline driving logs are to count the number of delayed vehicles based on dimensions such as year, month, day, station, and vehicle. This method only needs to configure the script based on the HIVE connector and set the partition by day to store daily driving details in the HIVE partition table, and complete the data diversion required for offline driving business.

[0089] Based on the above embodiments, the present invention provides a method for uniformly collecting and integrating rail transit driving log data based on batch-stream integrated big data technology. Figure 8 The flowchart of the method for unified collection and integration of rail transit driving log data based on batch-stream integrated big data technology provided by the present invention is as follows: Figure 8As shown, the process includes the following steps: 1. Real-time monitoring and collection of rail transit line driving log data and writing it into the KAFKA cluster; 2. Developing Flink scripts based on the self-developed Web streaming platform to consume KAFKA driving log topic access data in real time; 3. Unifying the integration of previous data. Based on the FlinkSQL script, the data is uniformly extracted, converted, dimensionally associated and integrated to form unified detailed data; 4. Offline business data is separated from real-time business data. The integrated detailed data is written to HIVE / HDFS and KAFKA respectively, and the real-time business demand data analysis and mining are based on the KAFKA data source, and the offline business demand data analysis and mining are based on HIVE / HDFS. Compared with the methods in the prior art, the method of the present invention can provide a unified way to collect, access and integrate offline business demand data and real-time business demand data. It is developed based on the self-developed Web platform, and only a set of SQL scripts need to be provided to achieve unified data collection and construction of detailed wide table data.

[0090] The real-time and offline business unified processing device based on big data technology provided by the present invention is described below. The real-time and offline business unified processing device based on big data technology described below and the real-time and offline business unified processing method based on big data technology described above can be referenced to each other.

[0091] Fig. 9 The schematic diagram of the structure of the real-time and offline business unified processing device based on big data technology provided by the present invention is as follows: Fig. 9 As shown, the device includes a writing unit 910, a unified integration unit 920 and a branch unit 930, wherein:

[0092] The writing unit 910 is used to write the business data collected in real time into the KAFKA cluster;

[0093] The unified integration unit 920 is used to process and integrate the data in the KAFKA cluster based on the real-time business requirements and the offline business scope to obtain the first detailed data of the real-time business and the second detailed data corresponding to the offline business scope;

[0094] The branch unit 930 is used to perform analysis and processing corresponding to the real-time business on the first detailed data, and the second detailed data is used for subsequent analysis and processing corresponding to the offline business at a preset time.

[0095] The device provided by the present invention writes the real-time collected business data into a KAFKA cluster; processes and integrates the data in the KAFKA cluster based on the real-time business requirements and the offline business scope, obtains the first detailed data of the real-time business and the second detailed data corresponding to the offline business scope; performs analysis and processing corresponding to the real-time business on the first detailed data, and the second detailed data is used for subsequent analysis and processing corresponding to the offline business at a preset time. Since the steps of processing and integrating the collected data in the real-time business and the offline business are merged and unified, the duplication of developing two sets of programs to process and integrate part of the collected data for the real-time business and the offline business respectively is avoided. The data collected in the real-time business can be directly stored in the database detailed wide table after processing and integration, avoiding another processing and integration when the offline business needs to use the same data, and the integration processing of the offline business is also merged into the integration processing of the real-time business, avoiding the development of two sets of programs for access processing for the real-time business and the offline business respectively, saving development costs, and unifying the formal structure of access data processing and integration in the real-time business and the offline business. Therefore, the device provided by the present invention avoids redundant calculations for repeated access processing of some data, and only requires the development of a set of programs to uniformly access and process the data of real-time analysis and mining and offline analysis and mining, thereby reducing the development time cost of the analysis and mining functions and unifying the formal structure of the integrated access data processing of real-time and offline businesses.

[0096] Based on the above embodiment, in the device, the unified integration unit is specifically used for:

[0097] Determine the attribute dimensions after data processing and integration based on real-time business needs and offline business scope;

[0098] Extracting, converting and dimensionally associating the data in the KAFKA cluster based on the attribute dimension to obtain processed and integrated detailed data;

[0099] The first detailed data corresponding to the real-time service is filtered out from the detailed data, and the second detailed data corresponding to the offline service scope is filtered out from the detailed data.

[0100] Based on the above embodiment, in the device,

[0101] The extraction condition of the extraction operation is determined based on the attribute dimension, the type of associated data corresponding to the target data in the conversion operation is determined based on the attribute dimension, and the dimension association operation is used to generate a view table of the associated and integrated data.

[0102] Based on the above embodiment, in the device, the data in the KAFKA cluster is extracted, converted and dimensionally associated based on the attribute dimension to obtain the processed and integrated detailed data, including:

[0103] Based on the manually written target script statements on the preset Web streaming platform, the Flink computing framework is controlled to extract, transform and dimensionally associate the data in the KAFKA cluster to obtain the processed and integrated detailed data;

[0104] The target script statement is an SQL statement including the instructions for extraction, conversion and dimension association processing, which is packaged by the preset Web streaming platform and uploaded to the Flink computing framework for conversion by the Flink computing framework into a Flink statement for execution.

[0105] Based on the above embodiment, in the device, the preset Web streaming platform includes topic data in a pre-bound and associated KAFKA cluster, and a pre-packaged functional module;

[0106] Correspondingly, the process of manually writing the target script statement includes:

[0107] Manual configuration is performed on the processing template statement formed based on the subject data and the functional module to obtain the target script statement.

[0108] Based on the above embodiment, in the device, the step of filtering out the first detailed data corresponding to the real-time service from the detailed data includes:

[0109] Filtering out first detailed data corresponding to the real-time business from the detailed data;

[0110] A KAFKA real-time detail wide table is created, and the first detail data is imported into the KAFKA real-time detail wide table for subsequent analysis and processing of the real-time business.

[0111] Based on the above embodiment, in the device, the step of filtering out the second detailed data corresponding to the offline service scope from the detailed data includes:

[0112] Filtering out second detailed data corresponding to the offline business scope from the detailed data;

[0113] Creating an offline real-time detailed wide table, and importing the second detailed data into the offline real-time detailed wide table for subsequent analysis and processing of the offline business;

[0114] The offline real-time detail wide table is a HIVE real-time detail wide table or an HDFS real-time detail wide table.

[0115] Fig.10 A schematic diagram of the physical structure of an electronic device provided by the present invention, such as Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute a unified processing method for real-time and offline services based on big data technology, the method comprising: writing the real-time collected service data into a KAFKA cluster; processing and integrating the data in the KAFKA cluster based on the real-time service requirements and the offline service scope to obtain the first detailed data of the real-time service and the second detailed data corresponding to the offline service scope; performing analysis and processing corresponding to the real-time service on the first detailed data, and the second detailed data is used for subsequent analysis and processing corresponding to the offline service at a preset time.

[0116] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0117] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the unified processing method of real-time and offline business based on big data technology provided by the above methods, and the method includes: writing the real-time collected business data into a KAFKA cluster; processing and integrating the data in the KAFKA cluster based on real-time business requirements and offline business scope to obtain first detailed data of the real-time business and second detailed data corresponding to the offline business scope; performing analysis and processing corresponding to the real-time business on the first detailed data, and the second detailed data is used for subsequent corresponding analysis and processing of the offline business at a preset time.

[0118] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the unified processing method of real-time and offline business based on big data technology provided by the above-mentioned methods, the method comprising: writing the business data collected in real time into a KAFKA cluster; processing and integrating the data in the KAFKA cluster based on real-time business requirements and offline business scope to obtain first detailed data of the real-time business and second detailed data corresponding to the offline business scope; performing analysis and processing corresponding to the real-time business on the first detailed data, and using the second detailed data for subsequent corresponding analysis and processing of the offline business at a preset time.

[0119] The server embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A unified processing method for real-time and offline services based on big data technology, characterized in that: include: Write the real-time collected business data into the KAFKA cluster; Processing and integrating the data in the KAFKA cluster based on real-time business requirements and offline business scope to obtain first detailed data of the real-time business and second detailed data corresponding to the offline business scope; the offline business scope includes currently existing offline businesses and offline businesses that may be expanded in the future; The first detailed data is analyzed and processed corresponding to the real-time business, and the second detailed data is used for subsequent analysis and processing corresponding to the offline business at a preset time; The processing and integration of the data in the KAFKA cluster based on the real-time business requirements and the offline business scope to obtain the first detailed data of the real-time business and the second detailed data corresponding to the offline business scope includes: Determine the attribute dimensions after data processing and integration based on real-time business needs and offline business scope; Extracting, converting and dimensionally associating the data in the KAFKA cluster based on the attribute dimension to obtain processed and integrated detailed data; Filtering out first detailed data corresponding to the real-time service from the detailed data, and filtering out second detailed data corresponding to the offline service scope from the detailed data; wherein, the extraction condition of the extraction operation is determined based on the attribute dimension, the type of associated data corresponding to the target data in the conversion operation is determined based on the attribute dimension, and the dimension association operation is used to generate a view table of the associated and integrated data; The extracting, converting and dimensionally associating operations are performed on the data in the KAFKA cluster based on the attribute dimension to obtain the processed and integrated detailed data, including: Based on the manually written target script statements on the preset Web streaming platform, the Flink computing framework is controlled to extract, transform and dimensionally associate the data in the KAFKA cluster to obtain the processed and integrated detailed data; The target script statement is an SQL statement including the instructions for extraction, conversion and dimension association processing, which is packaged by the preset Web streaming platform and uploaded to the Flink computing framework for conversion by the Flink computing framework into a Flink statement for execution.

2. The method for unified processing of real-time and offline services based on big data technology according to claim 1 is characterized in that: The preset Web streaming platform includes topic data in a pre-bound and associated KAFKA cluster, and pre-packaged functional modules; Correspondingly, the process of manually writing the target script statement includes: Manual configuration is performed on the processing template statement formed based on the subject data and the functional module to obtain the target script statement.

3. The method for unified processing of real-time and offline services based on big data technology according to any one of claims 1-2, characterized in that: The step of filtering out first detailed data corresponding to the real-time service from the detailed data includes: Filtering out first detailed data corresponding to the real-time business from the detailed data; A KAFKA real-time detail wide table is created, and the first detail data is imported into the KAFKA real-time detail wide table for subsequent analysis and processing of the real-time business.

4. The method for unified processing of real-time and offline services based on big data technology according to any one of claims 1-2, characterized in that: The step of filtering out the second detailed data corresponding to the offline business scope from the detailed data includes: Filtering out second detailed data corresponding to the offline business scope from the detailed data; Creating an offline real-time detailed wide table, and importing the second detailed data into the offline real-time detailed wide table for subsequent analysis and processing of the offline business; The offline real-time detail wide table is a HIVE real-time detail wide table or an HDFS real-time detail wide table.

5. A real-time and offline business unified processing device based on big data technology, characterized in that: include: The writing unit is used to write the real-time collected business data into the KAFKA cluster; A unified integration unit, used for processing and integrating the data in the KAFKA cluster based on real-time business requirements and offline business scope, to obtain first detailed data of the real-time business and second detailed data corresponding to the offline business scope; the offline business scope includes currently existing offline businesses and offline businesses that may be expanded in the future; The branch unit is used to perform analysis and processing corresponding to the real-time service on the first detailed data, and the second detailed data is used for subsequent analysis and processing corresponding to the offline service at a preset time; The unified integration unit is specifically used for: Determine the attribute dimensions after data processing and integration based on real-time business needs and offline business scope; Extracting, converting and dimensionally associating the data in the KAFKA cluster based on the attribute dimension to obtain processed and integrated detailed data; Filtering out first detailed data corresponding to the real-time service from the detailed data, and filtering out second detailed data corresponding to the offline service scope from the detailed data; In the real-time and offline business unified processing device based on big data technology, the extraction condition of the extraction operation is determined based on the attribute dimension, the type of associated data corresponding to the target data in the conversion operation is determined based on the attribute dimension, and the dimension association operation is used to generate a view table of the associated and integrated data; In the real-time and offline business unified processing device based on big data technology, the data in the KAFKA cluster is extracted, converted and dimensionally associated based on the attribute dimension to obtain the processed and integrated detailed data, including: Based on the manually written target script statements on the preset Web streaming platform, the Flink computing framework is controlled to extract, transform and dimensionally associate the data in the KAFKA cluster to obtain the processed and integrated detailed data; The target script statement is an SQL statement including the instructions for extraction, conversion and dimension association processing, which is packaged by the preset Web streaming platform and uploaded to the Flink computing framework for conversion by the Flink computing framework into a Flink statement for execution.

6. An electronic 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 program, the steps of the method for unified processing of real-time and offline services based on big data technology as described in any one of claims 1 to 4 are implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for unified processing of real-time and offline services based on big data technology as described in any one of claims 1 to 4 are implemented.