Traffic call record analysis method, device, equipment and storage medium based on big data
Through the combination of Flume, Kafka, Storm and other technologies, it solves the problem of difficulty in meeting accuracy and timeliness at the same time in the management of massive traffic bill data, improves data processing capabilities and accuracy, reduces data delays, and improves customer satisfaction.
Patent Information
- Application Number
- CN202111519346.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-13
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-13
AI Technical Summary
Existing technology cannot meet the requirements of data accuracy and timeliness at the same time, especially in the management of massive traffic bill data, resulting in data delays and errors, affecting customer satisfaction.
Use Flume distributed cluster for data preprocessing, process multiple data streams through Source and Sink, save to Zookeeper and HDFS, combine Kafka and Storm clusters for real-time calculations, use multiple Kafka clusters and Redis clusters for real-time analysis, and improve data processing capabilities and accuracy, reducing data latency.
It improves the processing capability and accuracy of massive traffic bill data, enhances the timeliness of data, and reduces data delays and customer complaints.
Smart Images

Figure CN114710481B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a traffic call sheet analysis method, device, equipment and storage medium based on big data. Background Art
[0002] The traffic bill data of IoT cards comes from the traffic data generated by the communication equipment of mobile operators. Especially in the current era of the popularity of IoT, the generation of massive traffic bill data has brought great difficulties to the management of their data by mobile operators. The existing "PBOSS system" has more than 80 million IoT card numbers, nearly 20 million active numbers every day, and the traffic bill data generated is about 150G. Faced with such a massive amount of traffic bill data, the technology in the existing system cannot meet the accuracy and timeliness of the data at the same time.
[0003] Traffic bill analysis technology is an algorithmic tool in the era of big data in the Internet of Things industry and has become a research hotspot in recent years. Compared with traditional analysis technology algorithms, traffic bill analysis technology has two advantages. First, traffic bill analysis technology can continuously improve its performance as the scale of data increases, while traditional analysis technology algorithms (including rule-based BOSS systems) are difficult to continuously improve their performance using massive data. Second, traffic bill analysis technology can improve the timeliness and accuracy of data, avoiding customer complaints caused by data delays and data errors. The advantages of traffic bill analysis technology have made good progress in some areas.
[0004] In terms of big data processing technology, a wealth of big data has been accumulated, including processing capabilities and system stability for massive data; however, the correct indicator data obtained by different types of data are not uniform, resulting in the lack of unified standards for the collection, storage, fusion analysis, etc. of large-scale call data, and the inability to effectively integrate and utilize them. In addition, there are also drawbacks in the accuracy and timeliness of the data. Summary of the invention
[0005] In response to the above-mentioned defects, the embodiments of the present invention disclose a traffic call record analysis method, device, equipment and storage medium based on big data to improve data processing capability and accuracy.
[0006] A first aspect of an embodiment of the present invention discloses a traffic call record analysis method based on big data, the method comprising:
[0007] Collecting the data source of the flow bill to obtain flow bill data;
[0008] Pre-analyze the traffic bill data; the pre-analysis includes: processing multiple Sources and Sinks simultaneously through a Flume distributed cluster, converting the Source into a data stream by Flume, ensuring that all bill data is written to disk through Flume's File channel, and performing bill batch processing on the Sink, and saving the batch data to the Zookeeper cluster; the Sink also writes the original bill into the Hadoop cluster and saves it to the HDFS distributed file system;
[0009] The pre-analyzed data is analyzed in real time or offline.
[0010] As a preferred embodiment, in the first aspect of the embodiment of the present invention, collecting the data source of the flow bill to obtain the flow bill data includes:
[0011] The data source of the traffic bill is collected through a real-time single interface and / or a batch file interface of FTP.
[0012] As a preferred embodiment, in the first aspect of the embodiment of the present invention, the pre-analysis further comprises: dividing the flow bill data into a plurality of partitions according to a preset rule, and storing the flow bill data in a file server according to the partitions,
[0013] The method of processing multiple Sources and Sinks simultaneously through a Flume distributed cluster includes:
[0014] Files are read in batches according to partitions, and then multiple sources and sinks are processed simultaneously through the Flume distributed cluster.
[0015] As a preferred embodiment, in the first aspect of the embodiment of the present invention, when the pre-analyzed data is analyzed in real time, it includes:
[0016] The pre-analyzed traffic bill data is stored in the Kafka cluster for real-time computing and analysis;
[0017] According to the partition and call record service attributes, multiple Storm clusters are established. The multiple Storm clusters include partition Storm clusters corresponding to the number of partitions, which are used to process the pre-analyzed traffic call record data of the corresponding partitions, and a special service Storm cluster, which is used to process the pre-analyzed traffic call record data of the special service.
[0018] As a preferred embodiment, in the first aspect of the embodiment of the present invention, the method further comprises collecting, pre-analyzing and real-time analyzing the ordering data, and storing the data after the real-time analysis in an Oracle database and in an ordering data cache;
[0019] The Storm cluster also deducts and / or accumulates usage of related services based on the subscription data in the subscription data cache, and saves the usage deduction and / or accumulation results to the Redis cluster. The related services include at least one or more of groups, numbers, traffic sharing pools, APNs, and packages.
[0020] As a preferred embodiment, in the first aspect of the embodiment of the present invention, when the pre-analyzed data is analyzed in real time, it includes:
[0021] Hadoop / MapReduce is used to perform offline statistical analysis on the pre-analyzed data, and the data is saved to a data warehouse or / and synchronized to MongoDB for caching.
[0022] As a preferred embodiment, in the first aspect of the embodiment of the present invention, the data warehouse further includes a DIM layer, and each table in the DIM layer contains relevant detailed information of a specified attribute in the fact table.
[0023] A second aspect of an embodiment of the present invention discloses a traffic call sheet analysis device based on big data, which includes:
[0024] A collection unit, used to collect the data source of the flow bill and obtain the flow bill data;
[0025] A pre-analysis unit is used to pre-analyze the traffic bill data; the pre-analysis includes: processing multiple Sources and Sinks simultaneously through a Flume distributed cluster, the Source is converted into a data stream by Flume, and all bill data is written to the disk through Flume's Filechannel, the Sink performs bill batch processing, and saves the batch data to the Zookeeper cluster; the Sink also writes the original bill into the Hadoop cluster and saves it to the HDFS distributed file system;
[0026] The analysis unit is used to perform real-time or offline analysis on the pre-analyzed data.
[0027] As a preferred embodiment, in the second aspect of the embodiment of the present invention, the pre-analysis unit further comprises: dividing the flow bill data into a plurality of partitions according to a preset rule, and storing the flow bill data in a file server according to the partitions;
[0028] The method of processing multiple Sources and Sinks simultaneously through a Flume distributed cluster includes:
[0029] Read files in batches according to partitions, and then process multiple sources and sinks simultaneously through Flume distributed cluster processing;
[0030] When the analysis unit adopts real-time analysis, it includes:
[0031] The pre-analyzed traffic bill data is stored in the Kafka cluster for real-time computing and analysis;
[0032] According to the partition and call record service attributes, multiple Storm clusters are established. The multiple Storm clusters include partition Storm clusters corresponding to the number of partitions, which are used to process the pre-analyzed traffic call record data of the corresponding partitions, and a special service Storm cluster, which is used to process the pre-analyzed traffic call record data of the special service.
[0033] The third aspect of an embodiment of the present invention discloses an electronic device, comprising: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute a traffic call record analysis method based on big data disclosed in the first aspect of the embodiment of the present invention.
[0034] A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute a traffic call record analysis method based on big data disclosed in the first aspect of an embodiment of the present invention.
[0035] A fifth aspect of an embodiment of the present invention discloses a computer program product. When the computer program product runs on a computer, the computer executes a traffic call record analysis method based on big data disclosed in the first aspect of the embodiment of the present invention.
[0036] A sixth aspect of an embodiment of the present invention discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes a traffic call record analysis method based on big data disclosed in the first aspect of an embodiment of the present invention.
[0037] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0038] On the one hand, the embodiment of the present invention uses the Source and Slink in Flume to pre-process massive traffic call record data with the technical architecture of offline statistics (HDFS) and real-time computing (Kafka), so that the processing capability of these data is improved while also improving the accuracy of the data.
[0039] On the other hand, the embodiment of the present invention uses the technical architecture of multiple Kafka clusters, Storm clusters and Redis clusters to perform real-time calculation and analysis on massive traffic call record data, thereby improving the timeliness of the data and reducing data delay while improving the processing capability of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technical personnel in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 It is a flow chart of a method for analyzing traffic bills based on big data disclosed in an embodiment of the present invention;
[0042] Figure 2 It is an architecture diagram of a traffic call bill analysis system based on big data disclosed in an embodiment of the present invention;
[0043] Figure 3 It is a schematic diagram of a business processing flow based on traffic bill deduction disclosed in an embodiment of the present invention;
[0044] Figure 4 It is a flow chart of a method for pre-analyzing traffic bills based on big data disclosed in an embodiment of the present invention;
[0045] Figure 5 It is a flow chart of a method for real-time analysis of traffic bills based on big data disclosed in an embodiment of the present invention;
[0046] Figure 6 It is a structural schematic diagram of a traffic call bill analysis device based on big data disclosed in an embodiment of the present invention;
[0047] Figure 7 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technical personnel in the field without creative work are within the scope of protection of the present invention.
[0049] It should be noted that the terms "first", "second", "third", "fourth", etc. in the specification and claims of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present invention and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0050] The embodiment of the present invention discloses a traffic call record analysis method, device, equipment and storage medium based on big data, which can improve the processing capability of these data while also improving the accuracy of the data, and is described in detail below with reference to the accompanying drawings.
[0051] Embodiment 1
[0052] See also Figure 1 , Figure 1 1 is a flow chart of a method for analyzing traffic bills based on big data disclosed in an embodiment of the present invention. Figure 1 As shown, the traffic call sheet analysis method based on big data includes the following steps:
[0053] S110, collecting data sources of the traffic bill to obtain traffic bill data.
[0054] The embodiment of the present invention discloses a method for analyzing traffic bills based on big data, which is implemented by the architecture of a traffic bill analysis system based on big data. There are many ways to implement the architecture of the traffic bill analysis system based on big data. As an implementation method, please refer to Figure 2 As shown, the architecture mainly includes application layer, capability layer, data layer, acquisition layer and data source layer.
[0055] Among them, the application layer provides a system operation interface for system users. Its functions include refined marketing, intelligent operations, Internet of Things applications, customer service applications, indicator applications, report applications, subject analysis, and special analysis.
[0056] The capability layer is used to provide various capabilities, including basic analysis capabilities, multi-dimensional analysis capabilities, data mining capabilities, real-time analysis capabilities, self-service analysis capabilities, data sharing capabilities, data unification services, and open SQL, FTP, WS, API, etc.
[0057] The data layer stores various traffic call record data separately in different warehouses, including the main data warehouse, distributed database, M / R, HBase, Hive, etc.
[0058] The acquisition layer is used to provide traffic bill data collection capabilities, including cloud ETL, stream data processing, and crawlers.
[0059] The data source layer is used to connect with the source data sources of each traffic bill. Batch collection includes operator BSS, operator bills, and business platforms; quasi-real-time collection includes terminals and the Internet.
[0060] In a preferred embodiment of the present invention, the data source mainly includes structured data, semi-structured data and unstructured data, among which structured data can be obtained in the operator BSS, operator call bills and service platform through a real-time single interface. For example, data collection can be performed through Webservice. Of course, the data source of the traffic call bill can also be obtained through the FTP batch file interface and the traffic call bill data can be collected.
[0061] Semi-structured data and unstructured data, such as terminal data or Internet data, can be obtained through quasi-real-time collection methods, such as crawler technology.
[0062] At the data acquisition layer, the collected traffic bill data is subjected to ETL (data extraction, transformation, loading) operations and can be saved to a file server (eg, NFS).
[0063] For the traffic and call bill analysis system architecture corresponding to the above big data, please refer to Figure 3 As shown in the figure, the business processing process of traffic bills may include seven blocks, including data collection module, real-time analysis module, scheduling and process control, offline analysis, distributed file storage, synchronization of various data storage, and analysis result data warehouse. The specific description of each block is as follows:
[0064] Data collection module: collects the source of traffic bills through real-time single interface and FTP batch file interface.
[0065] Real-time analysis module: performs real-time analysis on the collected source data, using Storm / Apache Kafka as real-time data processing.
[0066] Scheduling and process control: Different types of data are controlled using pre-set process scheduling rules.
[0067] Offline analysis: Hadoop / MapReduce is used to process batch synchronized data and big data that is cleaned and calculated only once at longer intervals.
[0068] Distributed file storage: Use Hadoop and HDFS to distribute the file data.
[0069] Synchronize various data storages: Synchronize the analyzed bill flow result data to MongoDB for caching.
[0070] Analysis result data warehouse: The analyzed call flow result data is stored in the Hadoop / Hive data warehouse.
[0071] S120, pre-analyze the traffic call record data; the pre-analysis includes: processing multiple Sources and Sinks simultaneously through the Flume distributed cluster, the Source is converted into a data stream by Flume, and all call record data is written to the disk through Flume's File channel. The Sink performs call record batch processing and saves the batch data to the Zookeeper cluster; the Sink also writes the original call record to the Hadoop cluster and saves it to the HDFS distributed file system.
[0072] Preliminary analysis of traffic call bill data not only improves data processing capabilities, but also improves data accuracy.
[0073] Specifically, in the process of pre-analysis of traffic bills, the traffic bill data is first partitioned based on preset rules, which is convenient for subsequent statistics and speeds up the processing speed. There can be multiple preset rules as needed, for example, it can be divided by province, city, county, and economic circle. For example, when the traffic bill data is Guangdong Province data, it can be divided into six partitions according to the region. Then, the traffic bill data stored in NFS is read in batches according to the partitions and pre-processed by Flume distributed cluster.
[0074] Please refer to Figure 4 As shown, various types of traffic bill source data are collected on the file server (NFS), and the bill data is stored according to partitions. When reading later, it can be read in sequence according to the data stored in the partitions.
[0075] After reading these source data, they are preprocessed through the Flume distributed cluster. The cluster is designed to be highly concurrent and can process multiple Sources (used to determine the location of data acquisition, responsible for monitoring and collecting data, and is a producer relative to Channel. Channel is a data channel, equivalent to a data buffer) and Sinks (used to determine the location of data transmission, responsible for placing data at the specified location, and is a consumer relative to Channel) at the same time.
[0076] It is understandable that the data of the corresponding partitions in NFS can be obtained through Source for preliminary analysis one by one. For example, the traffic call bill data of data types such as traffic, roaming, voice and SMS in a partition can be read through a Source respectively. Of course, one Source can also read the traffic call bill data of each partition, or multiple Sources can be set up, each Source corresponding to a certain data type of a partition.
[0077] The Source is converted into a data stream by Flume, and all call record data is written to disk through Flume's File channel, so data will not be lost when the process or machine is shut down or crashed. The Sink processes the call record batches and saves the batch data to the Zookeeper cluster (distributed coordination middleware) for real-time computing and analysis.
[0078] Sink also writes the original call records into the Hadoop cluster and saves them to the HDFS distributed file system to provide data for offline data analysis.
[0079] After the data pre-analysis is completed, it is saved to the Kafka cluster (data cache message queue) according to the designed partition topic to provide data for real-time computing and analysis.
[0080] In addition, in a preferred embodiment of the present invention, the ordering data is also pre-analyzed. The collection, pre-analysis and real-time analysis process of the ordering data is similar to the flow call bill data processing process, which will not be repeated here.
[0081] After pre-analysis, the traffic bill data is synchronized to the order data cache (Redis) and the order data storage Oracle respectively, so as to realize the corresponding deduction according to the order data during real-time calculation and analysis.
[0082] It is understandable that the Source and Slink in Flume use the technical architecture of offline statistics (HDFS) and real-time computing (Kafka) to pre-process massive traffic call record data, which improves the processing capability and accuracy of the data.
[0083] S130, performing real-time or offline analysis on the pre-analyzed data.
[0084] Real-time analysis of pre-analyzed data is mainly accomplished by using a technical architecture of multiple Kafka clusters, Storm clusters, and Redis clusters. This technical architecture can improve the timeliness of data and reduce data latency while improving the processing capability of these data.
[0085] For details, please refer to Figure 5As shown, in the traffic bill preprocessing, the data is processed and stored in the Kafka cluster for real-time calculation and analysis. For example, the domestic traffic, roaming traffic, SMS usage and voice usage of the corresponding users (individuals or groups, etc.) in each partition are counted through the Kafka cluster.
[0086] According to the regional division and call bill service attributes, multiple Storm clusters are established, including partition Storm clusters and special service Storm clusters. The partition Storm clusters are adapted to the number of partitions, corresponding to one partition respectively, and process the call bills of the corresponding partitions. The special service Storm clusters are responsible for the call bill processing of special services such as two-location cards and national comics. The node server of each Storm cluster can be configured with multiple processes and multiple threads, such as 10 processes, 100 threads, etc.
[0087] Real-time calculation determines whether to repeat the calculation based on the batch number. The data of each batch will be processed before the next batch of data is processed.
[0088] Based on the statistical analysis results of the Kafka cluster and the ordering data, the Storm cluster will complete the deduction and accumulation of usage for groups, numbers, traffic sharing pools, APNs, packages, and other dimensions, and save the data results to the Redis cluster.
[0089] Offline analysis uses Hadoop / MapReduce to analyze data stored in the HDFS distributed file system after pre-analysis, or / and data directly from the data acquisition module. It mainly processes data synchronized in batches and big data that is cleaned and calculated once at a long time interval. After the offline analysis is completed, the analyzed call flow result data is synchronized to MongoDB for caching, and the analyzed call flow result data is also stored in the Hadoop / Hive data warehouse.
[0090] To sum up, through the implementation of the embodiments of the present invention, the processing capability of massive traffic call record data is improved, thereby improving the efficiency and accuracy of data processing, and can also improve the timeliness of data processing, reducing customer complaints and other problems caused by data delays.
[0091] Embodiment 2
[0092] See also Figure 6 , Figure 6 Schematic diagram of a traffic call sheet analysis device based on big data disclosed in an embodiment of the present invention. Figure 6 As shown, the traffic bill analysis device based on big data may include:
[0093] The collection unit 210 is used to collect the data source of the flow bill and obtain the flow bill data;
[0094] The pre-analysis unit 220 is used to pre-analyze the traffic bill data; the pre-analysis includes: processing multiple sources and sinks simultaneously through the Flume distributed cluster, the source is converted into a data stream by Flume, and all bill data is written to the disk through the File channel of Flume, the sink performs batch processing of the bill, and saves the batch data to the Zookeeper cluster; the sink also writes the original bill to the Hadoop cluster and saves it to the HDFS distributed file system;
[0095] The analysis unit 230 is used to perform real-time or offline analysis on the pre-analyzed data.
[0096] Preferably, the pre-analysis unit 220 further includes: dividing the flow bill data into a plurality of partitions according to a preset rule, and storing the flow bill data in a file server according to the partitions;
[0097] The method of processing multiple Sources and Sinks simultaneously through a Flume distributed cluster includes:
[0098] Files are read in batches according to partitions, and then multiple sources and sinks are processed simultaneously through the Flume distributed cluster.
[0099] The analysis unit 230 includes:
[0100] The pre-analyzed traffic bill data is stored in the Kafka cluster for real-time computing and analysis;
[0101] According to the partition and call record service attributes, multiple Storm clusters are established. The multiple Storm clusters include partition Storm clusters corresponding to the number of partitions, which are used to process the pre-analyzed traffic call record data of the corresponding partitions, and a special service Storm cluster, which is used to process the pre-analyzed traffic call record data of the special service.
[0102] Embodiment 3
[0103] See also Figure 7 , Figure 7 FIG. 7 is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. As shown in FIG. 7 , the electronic device may include:
[0104] A memory 310 storing executable program codes;
[0105] a processor 320 coupled to the memory 310;
[0106] The processor 320 calls the executable program code stored in the memory 310 to execute part or all of the steps in a traffic call record analysis method based on big data in the first embodiment.
[0107] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute part or all of the steps in a traffic call record analysis method based on big data in embodiment one.
[0108] An embodiment of the present invention further discloses a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps in a traffic call record analysis method based on big data in embodiment one.
[0109] An embodiment of the present invention also discloses an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps in a traffic call record analysis method based on big data in embodiment one.
[0110] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0112] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0113] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the method described in each embodiment of the present invention.
[0114] In the embodiments provided by the present invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0115] A person of ordinary skill in the art can understand that some or all of the steps in the various methods of the embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0116] The above is a detailed introduction to a traffic call record analysis method, device, equipment and storage medium based on big data disclosed in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A traffic call list analysis method based on big data, characterized in that: include: Collecting the data source of the flow bill to obtain flow bill data; Preliminary analysis of the traffic call bill data; The pre-analysis includes: processing multiple sources and sinks simultaneously through a Flume distributed cluster, converting the source into a data stream by Flume, ensuring that all call record data is written to disk through Flume's File channel, and the sink performs call record batch processing and saves the batch data to the Zookeeper cluster; the sink also writes the original call record to the Hadoop cluster and saves it to the HDFS distributed file system; Performing real-time or offline analysis on the pre-analyzed data; The real-time analysis of the pre-analyzed data includes: performing real-time calculation and analysis on the batch data saved in the Zookeeper cluster, wherein the real-time calculation determines whether the calculation is repeated according to the batch number, and the next batch of data is processed only after each batch of data is processed; The offline analysis of the pre-analyzed data includes: using Hadoop / MapReduce to perform offline analysis on the data stored in the HDFS distributed file system after pre-analysis, mainly processing data synchronized in batches and big data that is cleaned and calculated once at a longer time interval; after the offline analysis is completed, the analyzed call flow result data is synchronized to MongoDB for caching.
2. The method for analyzing traffic bills based on big data according to claim 1 is characterized in that: The data source of the traffic bill is collected to obtain traffic bill data, including: The data source of the traffic bill is collected through a real-time single interface and / or a batch file interface of FTP.
3. The method for analyzing traffic bills based on big data according to claim 1 is characterized in that: The pre-analysis also includes: dividing the traffic bill data into a plurality of partitions according to a preset rule, and storing the traffic bill data in a file server according to the partitions, The method of processing multiple Sources and Sinks simultaneously through a Flume distributed cluster includes: Read files in batches according to partitions, and then process multiple sources and sinks simultaneously through Flume distributed cluster processing.
4. The method for analyzing traffic bills based on big data according to claim 3 is characterized in that: When the pre-analyzed data is analyzed in real time, it includes: The pre-analyzed traffic bill data is stored in the Kafka cluster for real-time calculation and analysis; According to the partition and call record service attributes, multiple Storm clusters are established. The multiple Storm clusters include partition Storm clusters corresponding to the number of partitions, which are used to process the pre-analyzed traffic call record data of the corresponding partitions, and a special service Storm cluster, which is used to process the pre-analyzed traffic call record data of the special service.
5. The method for analyzing traffic bills based on big data according to claim 4 is characterized in that: The method also includes collecting, pre-analyzing and real-time analyzing the ordering data, and storing the data after the real-time analysis in an Oracle database and an ordering data cache; The Storm cluster also deducts and / or accumulates usage of related services based on the subscription data in the subscription data cache, and saves the usage deduction and / or accumulation results to the Redis cluster. The related services include at least one or more of groups, numbers, traffic sharing pools, APNs, and packages.
6. A traffic call list analysis device based on big data, characterized in that: It includes: A collection unit, used to collect the data source of the flow bill and obtain the flow bill data; A pre-analysis unit, used for pre-analyzing the traffic bill data; The pre-analysis includes: processing multiple sources and sinks simultaneously through the Flume distributed cluster, converting the source into a data stream by Flume, ensuring that all call record data is written to the disk through Flume's Filechannel, and the sink performs call record batch processing and saves the batch data to the Zookeeper cluster; the sink also writes the original call record to the Hadoop cluster and saves it to the HDFS distributed file system; An analysis unit, used for performing real-time or offline analysis on the pre-analyzed data; The real-time analysis of the pre-analyzed data includes: performing real-time calculation and analysis on the batch data saved in the Zookeeper cluster, wherein the real-time calculation determines whether the calculation is repeated according to the batch number, and the next batch of data is processed only after each batch of data is processed; The offline analysis of the pre-analyzed data includes: using Hadoop / MapReduce to perform offline analysis on the data stored in the HDFS distributed file system after pre-analysis, mainly processing data synchronized in batches and big data that is cleaned and calculated once at a longer time interval; after the offline analysis is completed, the analyzed call flow result data is synchronized to MongoDB for caching.
7. The traffic call record analysis device based on big data according to claim 6 is characterized in that: The pre-analysis unit further includes: dividing the flow bill data into a plurality of partitions according to a preset rule, and storing the flow bill data in a file server according to the partitions; The method of processing multiple Sources and Sinks simultaneously through a Flume distributed cluster includes: Read files in batches according to partitions, and then process multiple sources and sinks simultaneously through Flume distributed cluster processing; When the analysis unit adopts real-time analysis, it includes: The pre-analyzed traffic bill data is stored in the Kafka cluster for real-time calculation and analysis; According to the partition and call record service attributes, multiple Storm clusters are established. The multiple Storm clusters include partition Storm clusters corresponding to the number of partitions, which are used to process the pre-analyzed traffic call record data of the corresponding partitions, and a special service Storm cluster, which is used to process the pre-analyzed traffic call record data of the special service.
8. An electronic device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the traffic call record analysis method based on big data as described in any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute a traffic call record analysis method based on big data as described in any one of claims 1 to 5.
