Using User Name And Password

This authentication mechanism requires a user name and a password.

This authentication mechanism is available only for Spark Thrift Server on non-HDInsight distributions.

To configure User Name And Password authentication:

  1. Set the AuthMech connection attribute to 3.
  2. Set the UID attribute to an appropriate user name for accessing the Spark server.
  3. Set the PWD attribute to the password corresponding to the user name you provided above.
  4. Set the ThriftTransport connection attribute to the transport protocol to use in the Thrift layer.
  5. If the Spark server is configured to use SSL, then configure SSL for the connection. For more information, see Configuring SSL Verification.