Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

rajib76 avatar image
rajib76 asked Erick Ramirez answered

How do I authenticate to my Astra DB?

In DSE, we can create role with password and specify whether the role is superuser and can login. Then we can use that role with password to access DSE resources. But in ASTRA, it did not allow me to specify a password. How do I use a role in ASTRA to access ASTRA resources, for example to do DSBULK. I am able to do DSBULK with the client id and secret, but I wanted to do the DSBULK with a specific role.

astra db
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

You will need to generate an application token and use it to connect to your Astra DB.

In the case of DSBulk, you will need the following:

  • secure connect bundle
  • client ID
  • client secret

Both the client ID and secret come with the app token you generate yourself.

For example, the command for loading data with DSBulk looks like this:

$ dsbulk load \
    -url /path/to/mydata.csv \
    -k keyspace_name -t table_name \
    -b "/path/to/secure-connect-bundle.zip"
    -u your_client_id
    -p your_client_secret

For details, see Loading data with the DataStax Bulk Loader. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.