Question

In: Computer Science

(a) What is an RDD in Spark? What is it used for? (b) What is In-Memory...

(a) What is an RDD in Spark? What is it used for?
(b) What is In-Memory Computing? Briefly describe its advantages.

Solutions

Expert Solution

a.) RDD stands for Resilient Distributed Dataset, It is an immutable combination of objects which can be used to perform parallel computing. Apache spark supports RDD in a way to perform parallel computation on different nodes on hadoop cluster. RDD is the datasets that helps us look into the data as a tabular format while doing computation on it. RDD in spark are divided into smaller chunks of data, and different chunks are given to different node on hadoop cluster for processing. RDD are also fault tolerant, meaning you can always recover data in case a node fails in the cluster.

Use: RDD is used in big data cluster for manipulating big data sets having huge volume. Using RDD we can distribute the processing task to the different nodes and cut down the processing time.

b.) In memory computation is the process to making data available in the main memory(RAM) and processing it in the main memory itself. There are various advantages to it including the faster processing time being the major one.

Advantages:

1.) HDD can read data at a rate of 128mb/sec. SSD can read at 512mb/sec while RAM or main memory has the capability of reading data at 2000mb/sec. This makes the process of extracting data faster.

2.) There are various advantages of in-memory computing in databases. Caching data and storing sessions being the two.


Related Solutions

Describe three types of memory that are used in an MSP430, explain specifically what each memory...
Describe three types of memory that are used in an MSP430, explain specifically what each memory type’s purpose and why that type of memory is best suited for that use.
Memory refers to the physical devices used to store programs or data. Main memory is used...
Memory refers to the physical devices used to store programs or data. Main memory is used for the information in physical systems which function at high speed (i.e. RAM), as compared to secondary memory, which are physical devices for program and data storage which are slow to access but offer higher memory capacity. The cache memory is an intermediate level between the main memory and the processor. The goal is to store the most frequently and most recently accessed data...
Q1/ A- What is cache memory and how it works? B- What are the three cache...
Q1/ A- What is cache memory and how it works? B- What are the three cache mapping approaches and what is the pros and cons of each approach? C- What is the cache replacement policies and read/write policies?
What function is used to deallocate dynamic memory when it is no longer required by your...
What function is used to deallocate dynamic memory when it is no longer required by your program? In your answer give the name of the function and its syntax, and how the C runtime system knows how much memory to deallocate. Give an appropriate example showing typical usage of this function.
What is memory unit and what are the basic units of memory measurements
What is memory unit and what are the basic units of memory measurements
a) What is a control chart and what is it used for? b) What are the...
a) What is a control chart and what is it used for? b) What are the steps for constructing a Control Chart? c) Explain the out of control signals?
What is false memory and how does it affect our memory?
What is false memory and how does it affect our memory?
what is memory? How is memory affected across the life span?
what is memory? How is memory affected across the life span?
polymer that doesn't have memory what polymer has no memory
polymer that doesn't have memory what polymer has no memory
23a - In CSS, what are the braces used for? { and } b - What...
23a - In CSS, what are the braces used for? { and } b - What does the following CSS statement do? p { color:red; font-size:25px; font-family:Helvetica; } c - What does the following CSS statement do? h1, h2 { border-bottom: 1px solid black;}
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT