Skip to main content
static get_connection(enable_ssl_cert_verification=False, enable_auto_discovery=False, enable_failover=False, logging_level=‘INFO’) GPUdb[source]

Get a connection to Kinetica getting connection and authentication information from environment variables.

This method is useful particularly for Jupyter notebooks, which won’t need authentication credentials embedded within them. This, in turn, helps to prevent commit of credentials to the notebook version control. In addition, some features including auto-discovery and SSL certificate verification are disabled by default to simplify connections for simple use cases.

The following environment variables are required: - KINETICA_URL: the url of the Kinetica server - KINETICA_USER: the username to connect with - KINETICA_PASSWD: the password to connect with

Parameters

enable_ssl_cert_verification (bool) –

Enable SSL certificate verification.

enable_auto_discovery (bool) –

Enable auto-discovery of the initial cluster nodes, as well as any attached failover clusters. This allows for both multi-head ingestion & key lookup, as well as cluster failover.

enable_failover (bool) –

Enable failover to another cluster.

logging_level (str) –

Logging level for the connection. (INFO by default)

Returns (GPUdb):

An active connection to Kinetica.