Hi @Rohit Khose,
This occurs usually when spark code is not formatted(either the braces or quotes/ indentation (in case of python) are not ended) properly will result this exception.
could you palest reformat your code and run the same (best is to use a text editor which highlight or submit the code block by block)
On the other hand this may occur due to the network failures while on data shuffle between execution (I doubt this is not the case) - in such cases resubmitting the job should result the successful completion(presume not in your case).