NEW
Font size
WorksheetsHADOOP | PIG LATIN
Total questions: 9
Worksheet time: 5mins
What is Pig?
Pig is a subset for the Hadoop API for data processing
Pig is a part of the Apache Hadoop project that provides C-like scripting languge interface for data processing
Pig is a part of the Apache Hadoop project. It is a "PL-SQL" interface for data processing in Hadoop cluster
PIG is the third most popular form of meat in the US behind poultry and beef
Which is not correct regarding PIG?
Which is not correct regarding PIG?
It is at the top of Hadoop and makes it possible to create complex jobs
PIG latin is used to express data Flows
PIG does not turns the transforms into a series of MapReduce jobs
In PIG to prints a relation to the console we use?
STORE
DUMP
PRINT SCREEN
In Pig when a data element is null, it means the value is
ZERO
NULL
MAY BE ZERO
UNKOWN
PIG compiler compiles its query into a
Map/Reduce task
PIG Latin task
REDUCE TASK
MAP TASK
PIG supports four basic types those are?
Atom, Map, Tuple, Bag
Atom, Map, Tuple, Reduce
Data, Map, Tuple, Bag
Atom, MapReduce, Tuple
pig script.pig runs the commands in the
local filelog script.pig
local file hdfs script.pig
script.pig
local file script.pig
A Data Atom is a simple atomic data value. It is stored as a
string
TEXT
NUMBER
NONE
The FOREACH statement is used to apply transformations to the data and to generate new data items. The basic syntax is
= FOREACH GENERATE ... ;
= FOREACH GENERATE data files
= FOREACH GENERATE
= FOREACH GENERATE FOREACH ... ;
