It seems that you have started hive in one terminal, and in another you are trying spark+hive. This is the reason you are facing this issue. Kindly do not start hive shell.

And, to start spark shell follow below command.

bin/spark-shell --jars /home/<path_to>/hive/lib/*.jar --driver-class-path /home/.../hive/lib/*.jar


Sumit Anand

edureka! Solution Team

Website -

Edureka claims 1st position at Deloitte's Technology Fast 50 India 2014