October 2018
Beginner
220 pages
5h 33m
English
Pig uses its own language to write data flows called Pig Latin. Pig Latin is a feature-rich expression language that enables developers to perform complex operations such as joins, sorts, and filtering across different types of datasets loaded on Pig. Developers can write scripts in Pig Latin, which then passes through the Pig Latin Compiler to produce a MapReduce job. This is then run on the traditional MapReduce framework across a Hadoop cluster, where the output file is stored in HDFS.
Let's now write a small script for batch processing with the following simple sample of students' grades:
2018,John,A2017,Patrick,C…
Save the file as student-grades.csv. You can create a Pig script for a batch run, or you can directly run the file ...
Read now
Unlock full access