the formula for calculating for first lineage and 2nd lineage nC in the image.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Pls do fast i will give u like
big data, spark rdd, cluster
R1 = sc.textFile(file.csv, 4)
R2=R1.filter(.....)
R3=R2.map(.....)
R4=R3.filter(.....)
R5=R1.filter(......)
R6=R5.map(.....)
a) Every instruction given in above snippet requires 2 seconds for execution. If there are 4
cores available in the Spark clusters, what will total execution time?
Answer:
Zero seconds, no action called, so no execution
b) Every instruction given in above snippet requires 2 seconds for execution. If there are 6
cores available in the Spark clusters, what will happen to the program execution time?
Answer:
No change, no execution will happen as no action called
c) If the following two instructions are added into the above program assuming number of
cores as 4, what will be the execution time?
R4.count()
R6.count()
Answer:
10 seconds for first lineage
8 seconds for second lineage
please explain the formula for calculating
execution time for first lineage and 2nd lineage
for the question C in the image.
Transcribed Image Text:big data, spark rdd, cluster R1 = sc.textFile(file.csv, 4) R2=R1.filter(.....) R3=R2.map(.....) R4=R3.filter(.....) R5=R1.filter(......) R6=R5.map(.....) a) Every instruction given in above snippet requires 2 seconds for execution. If there are 4 cores available in the Spark clusters, what will total execution time? Answer: Zero seconds, no action called, so no execution b) Every instruction given in above snippet requires 2 seconds for execution. If there are 6 cores available in the Spark clusters, what will happen to the program execution time? Answer: No change, no execution will happen as no action called c) If the following two instructions are added into the above program assuming number of cores as 4, what will be the execution time? R4.count() R6.count() Answer: 10 seconds for first lineage 8 seconds for second lineage please explain the formula for calculating execution time for first lineage and 2nd lineage for the question C in the image.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Multiple table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education