Dear Sampat,

Hope you are doing well.

Please follow the below steps

==> cd spark1.5.2

==> ./sbin/

==> ./sbin/ --hiveconf hive.server2.thrift.port=10000 --hiveconf --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



Please try and let us know if you face any issue.

We are eagerly waiting for your response.