JDBC to HiveServer2 connection in HTTPS mode with SSL enabled

0 votes

Hi. I am trying to connect to HiveServer2 using HTTPS mode and also SSL enabled. For HTTPS mode, I had used the below connection URL:

jdbc:hive2://<host>:<port>/<db>?hive.server2.transport.mode=http;hive.server2.thrift.http.path=<http_endpoint>

and for SSL I had used:

jdbc:hive2://<host>:<port>/<db>?hive.server2.transport.mode=http;hive.server2.thrift.http.path=<http_endpoint>

How to use both of this in a single connection URL?

Jun 4 in Big Data Hadoop by Esha
34 views

1 answer to this question.

0 votes

To connect to HiveServer2 in HTTPS mode with SSL enabled, you have to use the below URL format:

jdbc:hive2://<host>:<port>/<db>;ssl=true;sslTrustStore=<trust_store_path>;trustStorePassword=<trust_store_password>?hive.server2.transport.mode=http;hive.server2.thrift.http.path=<http_endpoint>
answered Jun 4 by Firoz

Related Questions In Big Data Hadoop

0 votes
1 answer

JDBC connection to Hive using TLS/SSL

Hi. The properties are right but in ...READ MORE

answered May 31 in Big Data Hadoop by Karan
26 views
0 votes
1 answer

How to work with distributed cache in Hadoop?

The problem with your code is that ...READ MORE

answered Apr 20, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
381 views
0 votes
1 answer

How to write a file in hdfs with Java?

You could pass the URI when getting ...READ MORE

answered Sep 26, 2018 in Big Data Hadoop by digger
• 27,630 points
91 views
0 votes
1 answer

How to convert a string to timestamp with milliseconds in Hive?

 concatenation of substrings using the following code: select ...READ MORE

answered Oct 31, 2018 in Big Data Hadoop by Neha
• 6,280 points
1,647 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,510 points
2,400 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,510 points
245 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
12,220 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
896 views
0 votes
1 answer

How to connect to HiveServer2 in HTTPS mode?

The connection URL to connect to HiveServer2 ...READ MORE

answered Jun 4 in Big Data Hadoop by Rachit
13 views
0 votes
1 answer

Connecting to HiveServer2 with SSL enabled.

The connection URL format to connect to ...READ MORE

answered Jun 4 in Big Data Hadoop by Dinesh
11 views