Introduction to Pig

This set of MCQs helps students to learn about various Pig in Hadoop which is a high-level platform or tool which is used to process the large datasets. It provides a high-level of abstraction for processing over the MapReduce. It provides a high-level scripting language, known as Pig Latin which is used to develop the data analysis codes

Start Quiz

Pig operates in mainly how many nodes?

Two Three Four Five

Pig Latin statements are generally organized in one of the following ways?

A LOAD statement to read data from the file system A series of “transformation” statements to process the data A DUMP statement to view results or a STORE statement to save the results All of the mentioned

Which of the following function is used to read data in PIG?

WRITE READ LOAD None of the mentioned

You can run Pig in interactive mode using the ______ shell.

Grunt FS HDFS None of the mentioned

Which of the following is the default mode?

Mapreduce Tez Local All of the mentioned

Which of the following will run pig in local mode?

$ pig -x local … $ pig -x tez_local … $ pig … None of the mentioned

Which of the following operator is used to view the map reduce execution plans?

DUMP DESCRIBE STORE EXPLAIN

___________ operator is used to view the step-by-step execution of a series of statements.

ILLUSTRATE DESCRIBE STORE EXPLAIN

__________ is a framework for collecting and storing script-level statistics for Pig Latin.

Pig Stats PStatistics Pig Statistics None of the mentioned

The ________ class mimics the behavior of the Main class but gives users a statistics object back.

PigRun PigRunner RunnerPig None of the mentioned

___________ is a simple xUnit framework that enables you to easily test your Pig scripts.

PigUnit PigXUnit PigUnitX All of the mentioned

Which of the following will compile the Pigunit?

$pig_trunk ant pigunit-jar $pig_tr ant pigunit-jar $pig_ ant pigunit-jar None of the mentioned

__________ abstract class has three main methods for loading data and for most use cases it would suffice to extend it.

Load LoadFunc FuncLoad None of the mentioned

Which of the following has methods to deal with metadata?

LoadPushDown LoadMetadata LoadCaster All of the mentioned

PigUnit runs in Pig’s _______ mode by default.

Local

Tez

MapReduce

None of the mentioned

Quiz/Test Summary
Title: Introduction to Pig
Questions: 15
Contributed by:
Steve