I am trying to connect hive non exist database using jdbc url . It does not throw any error and it is connecting with default database which should not be. This issue is occurring for hive-jdbc-1.2.1. if we use version hive-jdbc-0.12.0-cdh5.1.2 then we are getting proper exception showing Database does not exist. I am using HDP 2.4.2 and Hive 126.96.36.199.4 . I do not want to use cloudera jar. My code snapshot is given below where "acb" is unknown database.
Class.forName("org.apache.hive.jdbc.HiveDriver"); conn = DriverManager.getConnection("jdbc:hive2://*****.***.***:10000/acb");
Is it bug for hive jdbc driver ? Please help to fix this issue asap.