Configuring Proxy Connections
You can configure the connector to connect through a proxy server instead of connecting directly to the Spark service. When connecting through a proxy server, the connector supports basic authentication.
The connector currently only supports
You provide the configuration information to the connector in the connection URL. For more information about the syntax of the connection URL, see
To configure a proxy connection:
- Set the
UseProxyproperty to1. - Set the
ProxyHostproperty to the IP address or host name of your proxy server. - Set the
ProxyPortproperty to the port that the proxy server uses to listen for client connections. - Optionally, set the
ProxyIgnoreListproperty to a comma separated hostname. - For authentication with the proxy server:
- Using basic authentication:
- Set the
ProxyAuthproperty to1. - Set the
ProxyUIDproperty to your user name for accessing the server. - Set the
ProxyPWDproperty to your password for accessing the server.
- Set the
- Using proxy Kerberos authentication:
- Set the
ProxyAuthproperty to2. - Optionally, set the
ProxyKrbRealmproperty to your Kerberos realm. - Optionally,Set the
ProxyKrbHostFQDNproperty to the fully qualified domain name (FQDN) of your proxy server. - Optionally, Set the
ProxyKrbServiceNameproperty to your Kerberos service name. - Use
KRB5_CONFIGenvironment variable to point to Kerberos configuration file. Alternatively, you can use the java system propertyjava.security.krb5.confto set the path to the Kerberos configuration file.
Example using proxy Kerberos authentication:
jdbc:databricks://[Host]:[Port];AuthMech=3;transportMode=http;httpPath=cliservice;UID=token;PWD=simba123;UseProxy=1;ProxyHost=kdc.databricks.com;ProxyPort=3128;ProxyAuth=2;ProxyKrbREALM=DATABRICKS.COM;
- Set the
- Using basic authentication: