java.sql.SQLException: No suitable driver found for jdbc:hive://localhost:10000/default java.sql.SQLException: No suitable driver found for jdbc:hive://localhost:10000/default hadoop hadoop

java.sql.SQLException: No suitable driver found for jdbc:hive://localhost:10000/default


I found the solution. I use hive 1.2.1 so I need to write jdbc:hive2://localhost:10000/default instead of jdbc:hive://localhost:10000/default

thank you


I'm using hive-jdbc-1.0.0.jar and I got the connection established successfully to hive db. I'm also sharing other details which I used here.

Driver Name: org.apache.hive.jdbc.HiveDriver
URL: ("jdbc:hive2://localhost:10000/default","username","password")

Below are the total jars I used for my project to work on hive db from my java project.

enter image description here