Setting the JAAS configuration file location
Set the location to the configuration file using the
.dserc
file or environment variables.
Set the location to the configuration file using the .dserc
file or
environment variables.
Using the DataStax RC file
sasl_protocol=principal_name
login_config=file_name
- sasl_protocol
- Set to the user principal_name. For example,
dse_admin@EXAMPLE.COM
. - login_config
-
Set the file_name to the absolute path of the JAAS configuration file. See Providing Kerberos credentials using a keytab file or Providing Kerberos credentials using a ticket cache
Kerberos token variable
export DSE_TOKEN=delegation_token
DSE FS Kerberos variable
DSEFS_SHELL_OPTS="-Djava.security.auth.login.config=file_name"
Set the file_name to the absolute path of the JAAS configuration file. See Providing Kerberos credentials using a keytab file or Providing Kerberos credentials using a ticket cache
Spark job variable
If you are using JAAS rather than using a Kerberos ticket, you need to create a JAAS
configuration file. The default location for this file is
$USER_HOME/.java.login.config
. If your JAAS
configuration file is in a different location, you must specify the location by setting the
java.security.auth.login.config
option to the location of the file.
For example, to set java.security.auth.login.config
in an environment
variable for submitting jobs, set the SPARK_SUBMIT_OPTS
environment
variable to point to your JAAS configuration file:
export SPARK_SUBMIT_OPTS='-Djava.security.auth.login.config=/path/jaas.config'