Professional Documents
Culture Documents
MCKV Institute of Engineering: CO2 Analyze Analyze
MCKV Institute of Engineering: CO2 Analyze Analyze
NAME :- _______________________________________________
ROLL NO:
a) Class Roll No
QUESTIONS 1A 1B 2A 2B
Marks Alloted 5 5 5 5
Marks obtained
_______________________
Signature of Faculty
Assignment-2 for CA3 Evaluation
1. All assignments should be submitted in A4 sheet along with printed copy of front pages.
2. All answers must be written in good and clear handwriting failing which marks will be deducted.
3. Assignment should be submitted in hard copy within deadline.
Q2.A Predict the potential challenges that Hadoop might face in the coming years.
Suggest how the Hadoop ecosystem could adapt to overcome these challenges. 5
[Module1/CO1/Analyze-HOCQ]
B. Go through the following Pig Programme: Analyse the code block to state the purpose
of the program along with semantics and expected output. 1+2+2= 5
[Module3/CO2/Analyze/HOCQ)]
Program:-
[
line = LOAD '/root/pigdemos/lines.txt' AS (line:Chararray);
Words = FOREACH input GENERATE FLATTEN(TOKENIZE(line)) AS word;
Grouped = GROUP words BY word;
wordcount = FOREACH Grouped GENERATE group, COUNT(words);
DUMP wordcount;
]
Input File(lines.txt) :-
[ Welcome to Hadoop Session
Introduction to Hadoop
Introducing Hive
Hive Session
Pig Session ]