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

No columns #57

Closed
yyie opened this issue Aug 22, 2020 · 3 comments
Closed

No columns #57

yyie opened this issue Aug 22, 2020 · 3 comments
Labels
needs more info Waiting for the original report to provide more info

Comments

@yyie
Copy link

yyie commented Aug 22, 2020

Hi, I'm trying to setup Athena as a Metabase database. I already added the driver and configured the database. It detects my tables, but it doesn't detect their columns. Can you please help me? It's an IAM permission problem?

@dacort
Copy link
Owner

dacort commented Aug 24, 2020

Hi @yyie - do you see any errors or warnings in the Metabase server logs? You can find these in the Admin --> Troubleshooting section of Metabase. Please also let me know which version of Metabase and the Athena driver you're using.

@dacort dacort added the needs more info Waiting for the original report to provide more info label Aug 24, 2020
@yyie
Copy link
Author

yyie commented Aug 25, 2020

Hi, thanks for your answer.

I'm using:

  • Metabase: 0.36.4
  • Athena driver: 1.1.0

I found that the problem was the missing permissions for Athena. Additionally, the IAM policy reports some warnings because there are several athena permissions that doesn't exist. With those changes Metabase is working ok.

This is the AIM policy that i'm using ....

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"athena:GetTableMetadata",
"athena:StartQueryExecution",
"athena:ListDataCatalogs",
"glue:GetTableVersions",
"glue:GetPartitions",
"athena:GetQueryResults",
"athena:GetDatabase",
"athena:GetDataCatalog",
"athena:ListWorkGroups",
"athena:GetNamedQuery",
"athena:ListQueryExecutions",
"athena:GetWorkGroup",
"glue:GetTableVersion",
"athena:StopQueryExecution",
"athena:GetQueryResultsStream",
"glue:GetTables",
"glue:BatchGetPartition",
"glue:GetDatabases",
"athena:ListTagsForResource",
"glue:GetTable",
"athena:ListNamedQueries",
"glue:GetDatabase",
"glue:GetPartition",
"athena:ListDatabases",
"athena:GetQueryExecution",
"athena:BatchGetNamedQuery",
"athena:ListTableMetadata",
"athena:BatchGetQueryExecution"
],
"Resource": ""
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::xxxxxxxxxxxxx",
"arn:aws:s3:::xxxxxxxxxxxxx/
"
]
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:AbortMultipartUpload",
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::xxxxxxxxxxxxx",
"arn:aws:s3:::xxxxxxxxxxxxx/*"
]
}
]
}

@dacort
Copy link
Owner

dacort commented Aug 25, 2020

Thanks, @yyie! That makes sense - I think the main one is athena:ListDataCatalogs but there may be others.

This is related to #56 where the upgraded JDBC driver requires additional permissions and I need to update the readme.

@dacort dacort closed this as completed Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Waiting for the original report to provide more info
Projects
None yet
Development

No branches or pull requests

2 participants