DyfanJones / RAthena

Connect R to Athena using Boto3 SDK (DBI Interface)
https://dyfanjones.github.io/RAthena/
Other
35 stars 6 forks source link

Athena Login Error: Error in h(simpleError(msg, call)) #182

Open luisccmm opened 1 year ago

luisccmm commented 1 year ago

Error when trying to log in.

Script

con_athena <- dbConnect(RAthena::athena(),
                        aws_access_key_id='XXXXXXXXXXXXXXX',
                         aws_secret_access_key='XXXXXXXXXXXXXXXXXXXXXXXX',
                         s3_staging_dir=XXXXXXXXXXXXXXXXXXXXXXXX',
                         region_name='eu-central-1')

ERROR MESSAGE
Error in h(simpleError(msg, call)) : error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': ‘jdrv’ is not a slot in class “AthenaDriver”

DyfanJones commented 1 year ago

I believe you are getting an error due to AWR.Athena. RAthena class is different from AWR.Athena and doesn't create an jdr slot.

Both AWR.Athena and RAthena create a class called AthenaDriver, this is the confusion you are getting :)

I recommend you cleaning your session and initialise RAthena without AWR.Athena in your environment.