This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For versions earlier than 0.14, see the version note above.

 

Passing Custom HTTP Cookie Key/Value Pairs via JDBC Driver

 

 

HIVE-18447 introduced an option for clients to provide custom HTTP cookies that can be sent to the underlying server. Some authentication mechanisms like Single Sign On, need the ability to pass a cookie to some intermediate authentication service like Knox via the JDBC driver. 

 

JDBC connection URL:

 

jdbc:hive2://<host>:<port>/<db>;transportMode=http;httpPath=<http_endpoint>;http.cookie.<name1>=<value1>;http.cookie.<name2>=<value2>

 

When the above URL is specified, Beeline will call underlying requests to add HTTP cookie in the request header, and will set it to <name1>=<value1> and <name2>=<value2>


 

 

 

 

Save