WorksheetsPig Quiz-1
Total questions: 22
Worksheet time: 11mins
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
Use the __________ command to run a Pig script that can interact with the Grunt shell (interactive mode)
fetch
declare
run
all of the mentioned
What are the different complex data types in PIG
Maps
Tuples
Bags
All of these
What are the various diagnostic operators available in Apache Pig?
Dump Operator
Describe Operator
Explain Operator
All of these
If data has less elements than the specified schema elements in pig, then?
Pig will not do any thing
It will pad the end of the record columns with nulls
Pig will through error
Pig will warn you before it throws error
The default load function in pig is?
TupleStorage
PigStorage
HBaseStorage
All of the above
rel = sample xrel 0.1
samples 10% random records
samples first 10% records
samples last 10% records
None of the above
Point out the correct statement
LoadMeta has methods to convert byte arrays to specific types
The Pig load/store API is aligned with Hadoop's InputFormat class only
LoadPush has methods to push operations from Pig runtime into loader implementations
All of the mentioned
Which of the following function is used to read data in PIG?
Write
Read
Load
Run
Which of the follwing is a platform for analyzing large data sets that consists of a high-level language for expressing data analysis programs
Pig Latin
Oozie
Pig
Hive
Pig Latin scripting language is not only a higher-level data flow language but also has operators similar to
JSON
SQL
XML
All of the above
Which of the following is data flow scripting language for analyzing unstructured data?
Mahoot
Hive
Pig
All of the above
Which of the following command is used to show values to keys used in Pig ?
Set
Declare
Display
All of the Above
Use the __________ command to run a Pig script that can interact with the Grunt shell (interactive mode).
Fetch
Declare
Run
All of the Above
Which of the following command can be used for debugging?
Exec
Execute
Error
Throw
____________ method will be called by Pig both in the front end and back end to pass a unique signature to the Loader.
relativeToAbsolutePath()
setUdfContextSignature()
getCacheFiles()
getShipFiles
Which of the following is a framework for collecting and storing script-level statistics for Pig Latin.
Pig Stats
PStatistics
Pig Statistics
All of the Above
Which among the following is simple xUnit framework that enables you to easily test your Pig scripts.
PigUnit
PigXUnit
PigUnitX
All of the Above
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 Above
PigUnit runs in Pig’s _______ mode by default.
Local
Tez
MapReduce
All of the Above
You can run Pig in batch mode using
Pig shell command
Pig scripts
Pig options
None of the Above
