Error :
Caused by: org.apache.thrift.transport.TTransportException: Could not create http connection to jdbc:hive2://xxxxxxxxxx.azurehdinsight.net:443/default;transportMode=http;ssl=true;httpPath=/hive2. HTTP Response code: 403
Code:
public static void main(String[] args) throws SQLException {
Class.forName("org.apache.hive.jdbc.HiveDriver");
Connection con = DriverManager.getConnection("jdbc:hive2://xxxxx.azurehdinsight.net:443/default;transportMode=http;ssl=true;httpPath=/hive2", "xxx", "xxx");
Statement stmt = con.createStatement();
...
}
My Hive version: 1.2.1.2.5
My pom file:
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>1.2.0</version>
<classifier>standalone</classifier>
</dependency>