How to resolve "Cause: java.nio.file.AccessDeniedException: AWSSecurityTokenServiceException: The security token" error when trying to read data from TDV S3 datasource in TIBCO Data Science Team Studio?
book
Article ID: KB0071952
calendar_today
Updated On:
Products
Versions
Spotfire Data Science Team Studio
6.5.0 and later versions
Description
When we run a workflow in Team Studio to read data in the TDV S3 data source, we may encounter the error " Execution of 'demographics' failed. Error details: An internal error has occurred. Cause: java.nio.file.AccessDeniedException: : Instantiate org.apache.hadoop.fs.s3a.auth.AssumedRoleCredentialProvider on : com.amazonaws.services.securitytoken.model.AWSSecurityTokenServiceException: The security token".
This article describes the steps that can be used to resolve this issue.
Environment
Linux
Resolution
This error message is generated while reading data from the TDV S3 data source in Team Studio when Access Key ID and Secret Access Key provided in the Amazon S3 data source in TDV is no longer valid.
To resolve this issue, we need to generate a new Access Key ID and Secret Access Key from AWS and update the data source with new keys.
Steps to Generate a new Access Key from AWS:
Navigate to Services=> IAM=> Users in AWS console.
Choose your IAM user name (not the check box).
Open the Security credentials tab, and then select Create access key.
To see the new access key, choose the Show option.
Steps to update new Access Key in the S3 data source:
Open TDV studio
Navigate to the S3 data source, update the Access Key ID and Secret Access key with newly generated keys, and save the changes.
Note: Access Key ID and Secret Access Key expires after the fixed interval, and the user has to update the data source with new keys every time after that interval.
Issue/Introduction
How to resolve "Cause: java.nio.file.AccessDeniedException: AWSSecurityTokenServiceException: The security token" error when trying to read data from TDV S3 datasource in TIBCO Data Science Team Studio?