Pig I (Hệ thống xử lý dữ liệu bậc cao trên Hadoop)
Bài giảng giới thiệu về Pig, một hệ thống xử lý dữ liệu bậc cao trên Hadoop, so sánh Pig Latin với MapReduce và trình bày các khái niệm cơ bản về toán tử, kiểu dữ liệu và schema.
正在生成预览...
Pig, a high level data processing system on Hadoop Is MapReduce not Good Enough? Restricted programming model Only two phases ◼ Job chain for long data flow Too many lines of code even for simple logic How many lines do you have for word count? ◼ Programmers are responsible for this Pig to the Rescue High level dataflow language (Pig Latin) Much simpler than Java ◼ Simplifies the data processing Puts the operations at the apropriate phases ◼ Chains multiple MR jobs How Pig is used in the Industry At Yahoo, 70% MapReduce jobs are written in Pig ◼ Used to Process web logs ◼ Build user behavior models ◼ Process images ◼ Data mining Also used by Twitter, LinkedIn, eBay, AOL, ... Motivation by Example Suppose we have user data in one file, website data in another file. ◼ We need to find the top 5 most visited pages by users aged 18-25 In MapReduce In Pig Latin Pig runs over Hadoop Wait a minute How to map the data to records By default, one line → one record User can customize the loading process How to identify attributes and map them to the schema Delimiter to separate different attributes By default, delimiter is tab. Customizable. MapReduce Vs. Pig cont. Join in MapReduce Various algorithms. None of them are easy to implement in MapReduce Multi-way join is more complicated Hard to integrate into SPJA workflow MapReduce Vs. Pig cont. Join in Pig Various algorithms are already available. Some of them are generic to support multi-way join No need to consider integration into SPJA workflow. Pig does that for you! A = LOAD 'input/join/A'; B = LOAD 'input/join/B'; C = JOIN A BY $0, B BY $1; DUMP C; Pig Latin Data flow language Users specify a sequence of operations to process data More control on the process, compared with declarative language Various data types are supported ◼ Schema is supported ◼ User-defined functions are supported
… Tải file gốc để đọc toàn bộ tài liệu.
- 文档名称
- Pig I (Hệ thống xử lý dữ liệu bậc cao trên Hadoop)
- 学校 / 课程
- Duke University · Big Data
- 内容
- Tài liệu giới thiệu Pig như một giải pháp thay thế MapReduce hiệu quả hơn cho xử lý dữ liệu lớn trên Hadoop. Nó tập trung vào ngôn ngữ Pig Latin, các khái niệm cốt lõi và lợi ích so với MapReduce.
- 目录
- Is MapReduce not Good Enough?
- Pig to the Rescue
- How Pig is used in the Industry
- Motivation by Example
- In MapReduce
- In Pig Latin
- Pig runs over Hadoop
- Wait a minute
- MapReduce Vs. Pig cont.
- Pig Latin
- Statement
- Schema
- Schema cont.
- Data Types
- Data Types cont.
- Date Types cont.
- Operators
- Functions
- Doc.pages
- 54 页
- 上传者
- Giang Le
常见问题
Tài liệu này có miễn phí không?
Có. “Pig I (Hệ thống xử lý dữ liệu bậc cao trên Hadoop)” miễn phí — bạn chỉ cần đăng nhập rồi bấm Tải xuống để lấy file gốc.
Tài liệu dài bao nhiêu trang?
Tài liệu gồm 54 trang, thuộc môn Big Data. Bạn có thể xem trước online trước khi tải.
Tôi có thể xem trước trước khi tải không?
Có. Bạn xem trước tài liệu ngay trên trang này bằng trình đọc online, rồi quyết định tải về.

评论 (0)
暂无评论。快来抢沙发吧!