Purpose

Determines which authentication method the driver uses when establishing a connection. If the specified authentication method is not supported by the database server, the connection fails and the driver throws an exception.

Valid Values

delegationToken | kerberos | userIdPassword | none

Behavior

If set to delegationToken, the driver uses Hadoop delegation token authentication. See "Hadoop delegation token authentication" for additional requirements.

If set to kerberos, the driver uses Kerberos authentication. The driver ignores any user ID or password that is specified.

If set to userIdPassword, the driver uses user ID/password authentication. If a user ID and password is not specified, the driver throws an exception.

If set to none, the driver does not attempt to verify the user ID and password. When a packet is passed to the server, a value of Anonymous is specified for the user ID and password. This setting is used when the server is not configured to authenticate user logon information.

Notes

  • The User property provides the user ID. The Password property provides the password.
  • When Kerberos authentication is enabled, you must specify the server's SASL-QOP level using the SASLQOP connection property.

Data Source Method

setAuthenticationMethod

Default

userIdPassword

Data Type

String

See also