Connect to PQS directly

You can connect to the PQS using the JDBC thin client. HTTPS connections to PQS are automatically configured when auto-TLS is enabled. Auto-TLS is enabled by default in CDP.

You can use the JDBC URL syntax to form the URL and connect to PQS.

To connect to the PQS directly, you must use the JDBC URL syntax as shown here: jdbc:phoenix:thin:[key=value[;key=value...]]

You must provide the correct URL, serialization, and authentication key-values to interact with the Phoenix Query Server.

Example URL

jdbc:phoenix:thin:url=http://localhost:8765;serialization=PROTOBUF; authentication=SPENGO;principal=phoenix@EXAMPLE.COM;keytab=/etc/security/keytabs/phoenix.keytab