How is transformation on rdd different from action?



How is transformation on rdd different from action?..

Answer / Mahendra Singh Kotwal

A transformation on an RDD in Apache Spark creates a new logical plan without executing the operations immediately. It returns a new RDD with the transformed data and does not trigger any physical data processing until an action is called. Examples of transformations include map(), filter(), join(). An action, on the other hand, triggers the execution of the entire logical plan and generates a physical result such as collect(), count(), saveAsTextFile(). Transformations allow users to chain multiple operations together without executing them immediately, while actions force the computation to be executed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Spark Interview Questions

Name commonly-used Spark Ecosystems

1 Answers  


Is the following approach correct? Is the sqrt Of Sum Of Sq a valid reducer?

1 Answers  


What is the use of spark in big data?

1 Answers  


What is apache spark architecture?

1 Answers  


What is pagerank in graphx?

1 Answers  


How to start and stop spark in interactive shell?

1 Answers  


How do you stop a spark?

1 Answers  


What is difference between scala and spark?

1 Answers  


How will you connect Apache Spark with Apache Mesos?

1 Answers  


Who invented the first spark plug?

1 Answers  


What makes Apache Spark good at low-latency workloads like graph processing and machine learning?

1 Answers  


Is there an api for implementing graphs in spark?

1 Answers  


Categories