Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

AWS creds provider while running spark app on Kubernetes #1

Description

@tbhangalenice

Hi, I am running spark streaming application on Kubernetes, where-in service-account has the aws IAM role to connect to aws services. The app is reading from kinesis and writing to kinesis stream.

But while running the app is not able to connect to aws with any of the configs below:
"spark.sql.kinesis.aws.credentials.provider": "com.amazonaws.auth.WebIdentityTokenCredentialsProvider"
"spark.sql.kinesis.aws.credentials.provider": "com.amazonaws.auth.DefaultAWSCredentialsProviderChain"
"spark.sql.kinesis.aws.credentials.provider": "com.amazonaws.auth.AWSSessionCredentialsProvider"

Tried both configs awsUseInstanceProfile true and false, with no luck.

The spark app is running fine my local system with DefaultAWSCredentialsProviderChain while writing to console, but having issues while running on Kubernetes. Could anyone please help on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions