Dear Sampat,
Hope you are doing well.
Please follow the below steps
==> cd spark1.5.2
==> ./sbin/start-master.sh
==> ./sbin/start-thriftserver.sh --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.server2.thrift.bind.host=localhost --master spark://localhost.localdomain:7077
==> !connect jdbc:hive2://localhost:10000
(It will ask for username and password give username: edureka and password: edureka)
==> Now in another terminal fire below commands.
> cd spark-1.5.2
> ./bin/spark-sql
Screenshot:

Please try and let us know if you face any issue.
We are eagerly waiting for your response.