Using User Name And Password (LDAP)

This authentication mechanism requires a user name and a password.

You provide this information to the connector in the connection URL. For more information about the syntax of the connection URL, see Building the Connection URL.

To configure User Name And Password authentication:

  1. Set the AuthMech property to 3.
  2. Set the transportMode property to the transport protocol that you want to use in the Thrift layer.
  3. If you set the transportMode property to http, then set the httpPath property to the partial URL corresponding to the Spark server. Otherwise, do not set the httpPath property.
  4. Set the UID property to an appropriate user name for accessing the Spark server.
  5. Set the PWD property to the password corresponding to the user name you provided.

For example, the following connection URL connects to a Spark server with LDAP authentication enabled:

jdbc:spark://node1.example.com:10000;AuthMech=3;transportMode=http;httpPath=cliservice;UID=spark;PWD=simba;

In this example, user name and password (LDAP) authentication is enabled for JDBC connections, the LDAP user name is spark, the password is simba, and the server is listening on port 10000 for JDBC connections.