Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Data flow of multi-source data acquisition and processing

Shulou Source: shulou.com Published: 2022-06-03 04:17:02 11月01日 Update

Data processing flow chart of data platform

Data preparation:

It is mainly divided into several sources: FTP data sources, data pushed by partners, data obtained from Ctrip's open API interface, hotel management system log data and online travel agency website data sources. Data access:

According to the characteristics of multi-sources of data, a data access method for a specific scenario is developed.

Data from a.FTP sources: developed using shel scripts, including checking whether the data is ready, starting downloading, decrypting and unpacking, lzop compression, and uploading files to HDFS in put mode

b. Data pushed by partners: build a simple web service, accept requests pushed by Ctrip, use Nginx to complete the request load, and use Nginx to record the data in the request and write to the file. Later, the data can be obtained through the log collection system (in fact, the data can be pushed directly to Kafka from the partner)

c. Partner API interface data: the development program forms the producer-consumer model. The producer writes the task to the queue, and the consumer gets the task from the queue and uses the thread pool to concurrently obtain data from the partner API interface.

D.PMS log data: mainly done by open source Flume components

e. Website data: crawling website data with crawlers

3. Data storage:

There are two ways to store real-time data and offline data, which are stored through Kafka and HDFS respectively.

4. Data processing:

In the part of data processing, MapReduce and Spark are mainly used to develop data processing tasks.

5. Data query:

Hive is defined in the process of data query, and users query the data through Hive in the process of using the data platform.

Tags: Data partners cooperation sources processing data processing development push tasks interfaces methods logs websites storage queries processes platforms data queries files consumers Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn Shulou Information Redmi Apple