1.

File format support by Spark? How the lazy evaluation works in Spark?

Answer»
  • Parquet file.
  • JSON
  • Hive
  • Cassandra, Mongo-DB
  • Text file
  • CSV file
  • My-SQL

Lazy evaluation in spark works to instantiate the variable when its really required for INSTANCE like when spark do the transformation, till this time it’s not computed, however when we APPLIED the action than its compute the DATA. Spark delays its evaluation till it is NECESSARY

Eg: lazy val lazydata = 10



Discussion

No Comment Found