如何将 Google Data Studio 连接到 AWS Athena?

How to connect Google Data Studio to AWS Athena?

我需要连接 Google Data Studio to AWS Athena. One way to do that is with a the JDBC URL connection option. I used the following parameters in the Database Authentication 表单,但出现如下错误:

参数:

Url

jdbc:awsathena://athena.us-east-2.amazonaws.com:443;UID=[MY_AWS_ACCESS_KEY];PWD=[MY_AWS_SECRET_KEY];S3OutputLocation=s3://[S3_OUTPUT_BUCKET];

用户名

[MY_AWS_ACCESS_KEY]

密码

[MY_AWS_SECRET_KEY]

错误:

The server encountered an internal error and was unable to complete your request.

将 Google Data Studio 连接到 AWS Athena 甚至连接到 AWS S3 的任何解决方案都应该可以解决此问题。我试过了 this Google Apps script to connect to S3 but failed to connect with authentication error as shown in this open issue.

Google Data Studio 似乎不支持安装驱动程序(这并不奇怪,因为它是托管应用程序,而不是自托管应用程序)。

我认为您最好的选择是创建一个连接器——实际上我很惊讶还没有开源社区连接器存在。我认为基本上你需要在 Google Data Studio connector guide. 之后包装 Athena API 这并不简单,但它看起来可行......

现在存在 Google Data Studio 的开源连接器 here

要使用它,您需要按照 here 的详细说明进行操作,即 copy/paste 将代码放入 Google Apps 脚本项目,然后将其部署到 Google数据工作室。