Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

IllegalArgumentException: No region provided #81

Open
franciriva opened this issue Sep 4, 2020 · 1 comment
Open

IllegalArgumentException: No region provided #81

franciriva opened this issue Sep 4, 2020 · 1 comment

Comments

@franciriva
Copy link

Hi there,
I'm trying to upgrade to the latest version:
spark-dynamodb_2.12-1.1.0
but no matter what I do I get the above error: "IllegalArgumentException: No region provided"

The code works on this version:
spark-dynamodb_2.11-1.0.4

Code here:

df = spark.read.schema(source_raw_schema).format("dynamodb") \
  .option("region", "eu-west-1") \
  .option("roleArn", "arn:aws:iam::xxx") \
  .option("tableName", "yyy") \
  .load()

Can you help?

Thanks!

@youcefjd
Copy link

Hi - not related to your issue and I apologize for that. I was just wondering if you could help me out to understand how to load data from dynamo using the AP library? Can you provide me with a code snippet on how to connect dynamo to spark and then load the data to a df? Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants