 <p>Thanks guys for your comments.</p> <p>I have reinstalled spark 1.5.2 and it works for me. Earlier the problem was with the spark-1.5.2.tar file. So I downloaded the fresh tar file of spark 1.5.2 and reinstall spark and now it works properly.</p>