Upload
khangminh22
View
0
Download
0
Embed Size (px)
Citation preview
IKT433GDistributedandBigDataSystems
1/13
X X X X X X X
IKT433-G,generalinformation
Attachingsketchestothisquestion?Usethefollowingcode:
Coursecode:IKT433-GCoursename:DistributedandBigDataSystemsDate:24.05.2019Duration:4hoursResourcesallowed:Notes:PartA–Distributedsystemswillweight60%ofthewrittenexamgrade.EachassignmentwithinpartAisweightedequallyandeachsubquestionwithineachassignmentisweightedequally.
PartB–BigDatawillweight40%ofthewrittenexamgrade.EachassignmentwithinpartBisweightedequallyandeachsubquestionwithineachassignmentisweightedequally.------------------Theprofessorssometimesaskforexamanswerstobeusedforteachingpurposes,butinorderforthistotakeplace,theuniversityneedsyourconsent.DoyougranttheUniversityofAgderpermisionsuchpermission?Selectonealternative
Yes
No
IKT433GDistributedandBigDataSystems
2/13
X X X X X X X
1 BigData1
Attachingsketchestothisquestion?Usethefollowingcode:
WhatarethetwocorecomponentsofHadoopandhowdotheywork?Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
3/13
X X X X X X X
2 BigData2
Attachingsketchestothisquestion?Usethefollowingcode:
Inthefollowingassignment;selectoneoftheanswers,giveashortjustificationforyouranswer.InaMapReducejob,youwanteachofyouinputfilesprocessedbyasinglemaptask.HowdoyouconfigureaMapReducejobsothatasinglemaptaskprocesseseachinputfileregardlessofhowmanyblockstheinputfileoccupies?A.Increasetheparameterthatcontrolsminimumsplitsizeinthejobconfiguration.B.WriteacustomMapRunnerthatiteratesoverallkey-valuepairsintheentirefile.C.Setthenumberofmappersequaltothenumberofinputfilesyouwanttoprocess.D.WriteacustomFileInputFormatandoverridethemethodisSplittabletoalwaysreturnfalse.Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
4/13
X X X X X X X
3 BigData3
Attachingsketchestothisquestion?Usethefollowingcode:
Inthefollowingassignment;selectoneoftheanswers,giveashortjustificationforyouranswer.YouaredevelopingacombinerthattakesasinputTextkeys,IntWritablevalues,andemitsTextkeys,IntWritablevalues.Whichinterfaceshouldyourclassimplement?A.Combiner<Text,IntWritable,Text,IntWritable>B.Mapper<Text,IntWritable,Text,IntWritable>C.Reducer<Text,Text,IntWritable,IntWritable>D.Reducer<Text,IntWritable,Text,IntWritable>E.Combiner<Text,Text,IntWritable,IntWritable>Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
5/13
X X X X X X X
4 BigData4
Attachingsketchestothisquestion?Usethefollowingcode:
Inthefollowingassignment;selectoneoftheanswers,giveashortjustificationforyouranswer.Whatisthedifferencebetweenafailedtaskattemptandakilledtaskattempt?A.Afailedtaskattemptisataskattemptthatthrewanunhandledexception.AkilledtaskattemptisonethatwasterminatedbytheJobTracker.B.Afailedtaskattemptisataskattemptthatdidnotgenerateanykeyvaluepairs.Akilledtaskattemptisataskattemptthatthrewanexception,andthuskilledbytheexecutionframework.C.Afailedtaskattemptisataskattemptthatcompleted,butwithanunexpectedstatusvalue.Akilledtaskattemptisaduplicatecopyofataskattemptthatwasstartedaspartofspeculativeexecution.D.AfailedtaskattemptisataskattemptthatthrewaRuntimeException(i.e.,thetaskfails).Akilledtaskattemptisataskattemptthatthrewanyothertypeofexception(e.g.,IOException);theexecutionframeworkcatchestheseexceptionsandreportsthemaskilled.¨Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
6/13
X X X X X X X
5 BigData5
Attachingsketchestothisquestion?Usethefollowingcode:
Inthefollowingassignment;selectoneoftheanswers,giveashortjustificationforyouranswer.WhenistheearliestpointatwhichthereducemethodofagivenReducercanbecalled?A.Assoonasatleastonemapperhasfinishedprocessingitsinputsplit.B.Assoonasamapperhasemittedatleastonerecord.C.Notuntilallmappershavefinishedprocessingallrecords.D.ItdependsontheInputFormatusedforthejob.Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
7/13
X X X X X X X
6 BigData6
Attachingsketchestothisquestion?Usethefollowingcode:
Inthefollowingassignment;selectoneoftheanswers,giveashortjustificationforyouranswer.WhichdescribeshowaclientreadsafilefromHDFS?A.TheclientqueriestheNameNodefortheblocklocation(s).TheNameNodereturnstheblocklocation(s)totheclient.TheclientreadsthedatadirectoryofftheDataNode(s).B.TheclientqueriesallDataNodesinparallel.TheDataNodethatcontainstherequesteddatarespondsdirectlytotheclient.TheclientreadsthedatadirectlyofftheDataNode.C.TheclientcontactstheNameNodefortheblocklocation(s).TheNameNodethenqueriestheDataNodesforblocklocations.TheDataNodesrespondtotheNameNode,andtheNameNoderedirectstheclienttotheDataNodethatholdstherequesteddatablock(s).TheclientthenreadsthedatadirectlyofftheDataNode.D.TheclientcontactstheNameNodefortheblocklocation(s).TheNameNodecontactstheDataNodethatholdstherequesteddatablock.DataistransferredfromtheDataNodetotheNameNode,andthenfromtheNameNodetotheclient.Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
8/13
X X X X X X X
7 BigData7
Attachingsketchestothisquestion?Usethefollowingcode:
Whatismeantbylocality,andhowwillthataffectsystemslikehadoop?Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
9/13
X X X X X X X
8 DistributedSystems:1
Attachingsketchestothisquestion?Usethefollowingcode:
Assignment1
a:BrieflydiscussthefollowingpropertiesoftheMiddlewareCommunicationModels.b:Fromthepropertiesdiscussedabove,identifythepropertiesofRemoteProcedureCall(RPC)modelandusethosepropertiestoexplainitsfunctionality.C:ExplainhowbufferingandinterleavingcanprovideQoSinStream-OrientedCommunications.estiontext.Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
10/13
X X X X X X X
9 DistributedSystems:2
Attachingsketchestothisquestion?Usethefollowingcode:
Assignment2:
a-Whatdowemeanbyatransparentdistributedsystem?
b-DiscusswhatismeantbyLocationTransparency,MigrationTransparency,
ConcurrencyTransparency.threekindsoftransparencyexistinginadistributedsystem?
c-Theimplementationofanamespacerequirespartitioningitintothreedifferent
layers.Explainindetailthesethreelayers.
d-Whatismeantbyfaulttolerance?
e-ExplainwhatismeantbyTimingfailuresandArbitraryfailures?
f-Akeytechniqueformaskingfaultsistouseredundancy.Explainwhatis
physicalredundancy?
g-Explainthedifferencebetweenerror,faultandfailure.
h-Whatisadistributedsystem?
i-Whatisthedifferencebetweenamulticomputerandamultiprocessor?
Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
11/13
X X X X X X X
10 DistributedSystems:3
Attachingsketchestothisquestion?Usethefollowingcode:
Assignment3
Geneticalgorithm(GA)iswellknownoptimizationmethod.Inordertospeedupgeneticalgorithmforlargescaleoptimizationproblems,GAiscombinedwiththemultilevelschemei.
a:Explainindetailhowthegeneticalgorithmworks.
b:ExplaintheideaofthemultilevelschemewhenusedwithGA.
Fillinyouranswerhere
Words:0
11 DistributedSystems:4
Assignment4:
a-Whatdowemeanbyaconsistencymodel?
b-Giventhefollowing2examples,whereWi(x)aandRi(x)bmeanthata
writebyaprocessPitodataitemxwiththevalueaandareadfromthatitem
byPireturningbhavebeendonerespectively.
Isexample1strictlyconsistent?Why?
Example1:
P1:W(x)a
------------------------------------------------------------
P2:R(x)NILR(x)a
--------------------------------------------------------------
Example2:
IKT433GDistributedandBigDataSystems
12/13
X X X X X X XAttachingsketchestothisquestion?Usethefollowingcode:
P1:W(x)a
--------------------------------------------------------------
P2:W(x)b
--------------------------------------------------------------
P3:R(x)bR(x)a
--------------------------------------------------------------
P4:R(x)aR(x)b
IsExmple2causallyconsistent?
Fillinyouranswerhere
Words:0
IKT433GDistributedandBigDataSystems
13/13
X X X X X X X
12 DistributedSystems:5
Attachingsketchestothisquestion?Usethefollowingcode:
Assignment5:
a:Explainindetailhowthetwophasecommitprotocol(2PC)worksandtheproblems(blocking)
itmayhave.
b:LamporteAlgorithmisusedtoachieveagrreementinadistributedsyste.Explainindetatilhowitworks.
Fillinyouranswerhere
Words:0