5

Currently I am facing an issue while dealing with Databricks Mount point created on top of AWS S3 bucket. I could create the Mount Point in Databricks notebook with below code -

ACCESS_KEY = "<<AccessKey>>"
SECRET_KEY = "<<SecreteKey>>"
AWS_BUCKET_NAME = "<<s3 bucket name>>"
MOUNT_NAME = "testmntpnt01"

dbutils.fs.mount("s3a://%s:%s@%s" % (ACCESS_KEY, SECRET_KEY, AWS_BUCKET_NAME), "/mnt/%s" % MOUNT_NAME)

Result --> True

Though,with this mount point is getting created,when tried to list down using dbutils like below -

dbutils.fs.ls('/mnt/testmntpnt01/') 

Getting below error :

com.databricks.backend.daemon.data.common.InvalidMountException: The backend could not get session tokens for path /mnt/testmntpnt01. Did you remove the AWS key for the mount point?

Being novice in AWS with Databricks can not figure out the actual cause. Also the provided key & secrete are correct.

Anything I am missing here?

Thanks in advance.

CHEEKATLAPRADEEP
  • 12,191
  • 1
  • 19
  • 42
Abhi
  • 341
  • 1
  • 6
  • 23

0 Answers0