How to provide credentials when connecting to the database from a DataStax Enterprise tool.

Authorizing dse client-tool spark and dse spark

Authorization required to run dse client-tool spark or dse
spark.

To run the dse client-tool spark or dse spark using a
non-superuser role, authorize the role to EXECUTE on the following resources:

REMOTE OBJECT DseClientTool

When an unauthorized user attempts to run the command, for example launch a spark
console
session:

dse -u jane -p password spark

An
unauthorized error
displays:

The log file is at /home/automaton/.spark-shell.log
ERROR 2018-07-10 19:23:04,382 org.apache.spark.deploy.DseSparkSubmitBootstrapper: Failed to start or submit Spark application because of com.datastax.driver.core.exceptions.UnauthorizedException: User jane has no EXECUTE permission on <rpc method DseClientTool.getSparkMetricsConfig> or any of its parents - see details in the log file(s): /home/automaton/.spark-shell.log
ERROR 2018-07-10 19:23:04,682 org.apache.spark.deploy.DseSparkSubmitBootstrapper: Failed to cancel delegation token

Procedure

Log in to cqlsh with an account that has authorization
permission on remote objects.