Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currency folder on S3 #2

Open
HimanshuArora1234 opened this issue Apr 23, 2019 · 1 comment
Open

Currency folder on S3 #2

HimanshuArora1234 opened this issue Apr 23, 2019 · 1 comment
Assignees

Comments

@HimanshuArora1234
Copy link

HimanshuArora1234 commented Apr 23, 2019

Hello Xavier,

Thanks a lot for open sourcing this library. It's gonna save me quite some time. Just wanted to know if I can load the currency folder from S3. I tried but didn't work.

Got this error:

Caused by: java.lang.IllegalArgumentException: requirement failed: exchange rates should be loaded first using either CurrencyConverter.load("currency/folder") or CurrencyConverter.loadFromSpark("currency/folder", sc)

FYI I'm loading the files as follows:

CurrencyConverter.loadFromSpark("s3a://..........", sc)

Any help is greatly appreciated :)

@xavierguihot
Copy link
Owner

Hi, thanks for giving it a try!

I actually never tried loading rates from S3. Feels like it should work though.

Do you happen to see another error, such as java.lang.IllegalArgumentException: requirement failed: no exchange rates found.? which would indicate an issue during the parsing of rates.

Otherwise, I'll probably have a try at loading from s3 this week end and adapt the library if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants