Cloud computing has been a revolutionary advancement towards the technological development of information technology. Further, big data took the benefits of cloud services in order to provide better storing, handling and extracting data of different kinds (structured, semi-structured and unstructured). Apache spark is a lightning fast cluster which has enhanced the computing capabilities of Hadoop by providing faster results. In this paper we also discuss about the encrypted cloud data and propose a secure and privacy preserving algorithm for the same. Encrypted cloud data contains a secure mechanism to secure the actions happening in the cloud server. The Data Owner uploads the data into the cloud, whereas the Data User searches for the required file and then asks for the permission to download it from the Data Owner. The Data Owner and Data User both have their own secret key which helps them to authenticate themselves.