Here’s a quick brain dump on common issues customers have been running into while playing around with the Tableau and Athena during the Tableau 10.3 beta:
I can’t see any of my databases in the database drop-down. All that’s there is AwsDataCatalog
In this scenario, there’s nothing actually wrong. The AWS Data Catalog is an internal metadata store that stores information and schemas about the databases and tables that you created for the data stored in S3. Just choose it, and move on:
After you’ve done so, you’ll find your databases in the Schema drop-down:
Note that Tableau has already changed the labels on these two dropdowns from “Database” and “Schema” to “Catalog” and “Database” for the final release of the product. That way folks are less likley to be confused. Here’s what it’ll look like:
com.tableausoftware.jdbc.TableauJDBCException: Exception while connecting to server. User: arn:aws:iam::[account number]:user/athena-user is not authorized to perform: athena:GetExecutionEngine (Service: AmazonAthena; Status Code: 400; Error Code: AccessDeniedException; Request ID: [guid])
There was a Java error
Unable to connect to the server “athena.[region].amazonaws.com”. Check that the server is running and that you have access privileges to the requested database.
EnumerateTables failed: nothing returned.
Whoops! You haven’t given the user in question (athena-user, in this case) permissions to actually use Athena. You need to do so by associating the AmazonAthenaFullAccess policy with the IAM user in question:
More information on this topic can be found here.
com.tableausoftware.jdbc.TableauJDBCException: Exception in runQuery for query: [SELECT statement goes here] Insufficient permissions to execute the query.
There was a Java error.
Are you sure the logged-in IAM user who is attempting to execute the viz has permissions on the s3 bucket (and/or folders) in which the data Athena is trying to read is stored? Doesn’t sound like it.
For example, my “athena-user” ran into the error above after I built the viz while logged in as the IAM user who actually owned the s3 bucket in which the “Athena data” lives. Moral of the story: just because it works for you doesn’t mean it’ll work for others. Add a bucket or user policy granting access to the resources. Below, I’ve created a user policy which resolved the error above for athena-user:
We need to be able to see the stuff in the bucket AND get it.
I am getting the permission after the report is published to server. The report runs successfully from desktop. What would be causing this to occur?
Difficult to say without the exact error message. Please post it?
Here is the error, but I replaced some values with where I felt it might be necessary :
com.tableausoftware.jdbc.TableauJDBCException: Exception while connecting to server.
User: arn:aws:iam:::user/ is not authorized to perform: athena:GetExecutionEngine (Service: AmazonAthena; Status Code: 400; Error Code: AccessDeniedException; Request ID: )
There was a Java error.
Unable to connect to the server “athena..amazonaws.com”. Check that the server is running and that you have access privileges to the requested database
Sounds like you might have forgotten to include (embed) the username/password when you published the workbook to Server.
Also, I assume you installed the driver itself on Server?
The driver is on the server and “Publish Type” is set to “Embedded in workbook” and “Authentication” is set to “Embedded password” for the Data Source. If I make the data source connection an Extract instead of Live then it works but the extract refresh fails with “Sign in failed”. If I try and edit the connection and click the “Test Connection” button with “Embedded password in connection” selected it give an error of “Could not connect to server”.
Weird, sounds like you have most of your bases covered. Is this an on-prem server or are you running Tableau on ec2? Perhaps you’re on a private subnet without a route to Athena (security groups, NAT / Route Tables?
In your shoes, the next thing I’d try is putting a copy Desktop on this box and see if I can connect from the console.
Per the following error:
com.tableausoftware.jdbc.TableauJDBCException: Exception while connecting to server. S3 staging dir property (s3_staging_dir) must be a s3 path
To fix this make sure that the path to the bucket is prefixed with s3://.
So it would be:
s3://
No photos available give a visual representation for users, so I feel like I should let people know.
Cheers.
Have you ever been able to locate and import public S3 datasets om AWS with the Athena connector?
I have tried to access this data, but haven’t been succesful so far -> https://aws.amazon.com/public-datasets/gdelt/
I haven’t tried, but I don’t see why you couldn’t. Can you query these buckets from the Athena console? I assume these buckets allow Read, else they wouldn’t be public….
I gave the AmazonAthenaFullAccess but still I am getting “Unable to connect to the server “athena.us-east-1.amazonaws.com”. Check that the server is running and that you have access privileges to the requested database.”. What other issues should I check to solve the problem?
Seems there are none of the other JDBC properties exposed, which is a shame for anything beyond the most basic setup.
e.g. If your data is Encrypted:
query_results_encryption_option
query_results_aws_kms_key
And if you want to use IAM role for authentication rather than having to hard-code someone’s AWS Key and Secret Key
aws_credentials_provider_class
See the docs for more
https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html
Probably I can mess around with jar libraries and use an “other” jdbc connection type, but it kind of defeats the purpose of supporting Athena natively.
So turns out there is a solution for that, http://kb.tableau.com/articles/howto/Customizing-JDBC-Connections
Great that it works, pity it was in a kb article and not part of the main instructions or linked from the JDBC driver downloads page. I’ve logged with support so hopefully they will update it to make that info easier to find.
Meanwhile, now having issues with Tableau extracts timing out after 2 hrs (even though Athena query has finished successfully after 10 mins)
Hi,
I have full access to s3. I am getting below error.
com.tableausoftware.jdbc.TableauJDBCException: Exception in runQuery for query: LIMIT 1000 [Simba][AthenaJDBC](100131) An error has been thrown from the AWS SDK client. Unable to execute HTTP request: Connection reset.
Hello,
My name is Alex.
I am in trouble with connecting Tableau to Athena.
Even though i typed the info which are ( server, s3 directory, access key, secret key ), I still got the error ( Bad connection: Tableau could not connect to the data source. No details available. )
I checked my java version (java 1.8 version, 1.7 version is not installed at the same time)
Could you give me an advice?
Thank you
Sincerely,
Hi Russell,
when I try to query athena I get this:
“Unable to connect to the Amazon Athena server “awsathena://athena.us-east-1.amazonaws.com”. Check that the server is running and that you have access privileges to the requested database.”
However, I can list databases, and using the same credentials I can query using other tools such as Datagrip/Dbeaver.
I am trying this out in dev envirponment so my IAM user has full access.
Tableau love, we are not feeling it yet for Athena connector. I am very surprised that this athena connector issues have been going on for 2 or 3 years. The following mystical error shows up, even after every instruction. Tableau support case is pending for 10 days. not a happy customer.
An error occurred while communicating with Tableau Server.
The drivers required to connect to the data source are not installed. You might need to make local configuration changes to resolve the error.
Error: Unable to connect to this Tableau Server data source.
The drivers necessary to connect to the database server ” are not properly installed on Tableau Server. Visit http://www.tableau.com/drivers to download driver setup files.
java.sql.SQLException: No suitable driver
Generic JDBC connection error
java.sql.SQLException: No suitable driver
create.xml
DataServiceFailure
There was an error with the data source “”. Verify that the data source is configured correctly.
No details available.
I am not able to connect athena on tableau server ?
How to configure athena.properties file so that it work without the access key and secret key .