i have return a spark program to find the count of records from the 2GB memory file with storage memory of 1GB and it ran successfully.
But My question here is as 2GB file cannot fit into 1GB memory, but still how spark process the file and return the count.