I am trying to connect to Hive through JDBC.
Class.forName("org.apache.hive.jdbc.HiveDriver");
Connection con = DriverManager.getConnection("jdbc:hive2://hs2prod.corp.adobe.com:10000/default", "user", "pass");
Statement sql = con.createStatement();
ResultSet res = sql.executeQuery("SELECT * FROM TABLE_NAME" );
Have added the following dependency to pom.xml
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>2.1.1</version>
<scope>provided</scope>
</dependency>
Build is success but the OSGi bundle status shows installed instead of active with an error - javax.annotation,version=[1.0,2) -- Cannot be resolved
