Skip to main content
Thierry
Gold ⭐️
June 3, 2021
Solved

SNI support in Hive odbc driver

Hello,

I’m facing an issue while trying to connect with the hive ODBC driver through a proxy to access a hive database.

The SNI field in the request is populated with the proxy url instead of the destination url.

While performing a direct connection to the hive database, the SNI field is populated with the url of hive database, if I wanted to use a proxy between the server with Hive ODBC driver and the Hive database, the SNI field is populated with the proxy url.

In that case, my hive database, is enable to recognize the database I wanted to access to.

 

Is there any parameters for solved this issue?

Thanks

Thierry

 

 

Thierry
ThierryAnswer
Gold ⭐️
July 1, 2021

thanks for the answer, I also tried other ODBC drivers but they all act the same way.

4 replies

asish
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
June 14, 2021

Could you please provide screenshots? Whatis the proxy used? Is it Knox ?

Translate
Thierry
ThierryAuthor
Gold ⭐️
June 30, 2021

HI,

I have performed some more tests.

I capture some packets with wireshark on my server, one using the ODBC driver, one using chrome browser.

- When I use the ODBC driver with a proxy configuration, SNI in the packet has the proxy url value

Capture d’écran 2021-06-30 164514.jpg

- When I use chrome brower with a proxy configuration, SNI in the packet has the hive url value.

 

Capture d’écran 2021-06-30 172233.jpg

In my case, the value expected by a proxy in front of my hive database is the hive url (it's a traefik).

I can deduce, that the ODBC driver send the proxy url instead of the hive url.

Maybe this is normal (in compliance with a RFC !) ot this is a bug ? 

Is there a way to force the SNI in the driver configuration ?

 

thanks

Translate
asish
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
June 30, 2021