[{"id":"bcb0874d-299b-448e-9552-9e9b25ef80dd","tags":[{"product":null,"links":null,"id":"ba7e818e-4f6b-4211-b1ac-58e3bafcf439","name":"\u66F4\u65B0","color":"orange","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"8ce3627e-9e58-471b-9133-4f135d191e7b","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"ae60ae59-34f5-4f32-a8eb-243ed1457543","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"3d4848c3-910f-4ffa-9153-60bb507334a9","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"133f4ca6-d951-4d65-a618-3dc6301266f7","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"de62ec1c-813e-40b1-8160-a4cd109afe64","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"2426c71d-8332-4cbd-a436-1ec4f8666464","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"2ce7b6b0-78aa-4e4b-bf8a-e4ba2f988298","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"4706db46-0811-4652-8f59-1e0a1da84758","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"8f1271bb-2cd9-4f39-9897-c15b239ee7ab","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"677e13a7-6f3e-449f-986c-2c3a26f8d54f","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"5e40f6dc-caec-49d7-a1d0-be65f06815ba","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"2457f0e0-9e71-4860-a87d-065e0fb84f84","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"d5c67fd0-1145-482c-9113-97b492c44c18","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"a609a8fa-ab91-4c1d-a1c3-d209d0463303","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"b4a9eb15-94e5-48df-b218-a24138f0cf9c","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]}]
        
(Showing Draft Content)

BigQuery 数据连接

功能概述

BigQuery 是 Google 推出的一项 Web 服务,该服务让开发者可以使用 Google 的架构来运行 SQL 语句对超级大的数据库进行操作。

本节为您介绍如何在系统中连接 BigQuery。

驱动说明

连接 BigQuery 数据连接前,需要手动下载驱动。

驱动下载地址请参见:https://cloud.google.com/bigquery/docs/reference/odbc-jdbc-drivers

image2022-1-7_15-56-57.png


在产品的安装目录 Datasource service 下,手动创建目录 third-party-drivers/bigquery,将下载好的驱动放入即可。

image2022-1-7_15-36-37.png

连接 Bigquery 数据源

type=info

提示

连接 Bigquery 数据源之前,还需由管理员在后台管理中将 Bigquery 数据源勾选,以使创建数据源时可以选择 Bigquery。详情请见数据源管理

1. 在门户网站中单击image2018-7-30_10-56-34.png,选择数据源

image2022-5-12_14-52-34.png

2. 在左侧数据源列表或者在右侧图标视图中选择 BigQuery

image2022-1-7_15-38-29.png

3. 填写数据库配置信息。

image2022-1-7_15-42-29.png

参数

说明

名称

自定义输入数据源的名称。

主机

服务器名或IP。

端口

端口号,默认为443。

项目编号

BigQuery项目的名称。

认证模式

支持使用Service Account 和Pre-Generated Access and Refresh Tokens 两种方式。

- 当使用Service Account 认证模式时,则需要填写关键路径。关键路径中必须提供必须的信息。以下是一个示例,供您参考。

{ "type": "service_account", "project_id": "virtual-door-666666", "private_key_id": "fcc9988bf2520cd5c6044d17a367c53108629f82", "private_key": "key789456123", "client_email": "testgc@virtual-door-666666.iam.gserviceaccount.com", "client_id": "111771394207177123456", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/testgc%40virtual-door-666666.iam.gserviceaccount.com" }

- 当使用Pre-Generated Access and Refresh Tokens 认证模式时,则需要填写如下信息:

客户端编号,客户端密钥,访问令牌和刷新令牌。

使用配置连接字符串(高级)

如果您勾选了此选项,则只需要填写此项与数据源的名称即可。填写此项的格式为:

jdbc:bigquery://MyHost:MyPort;ProjectId=MyProjectId;OAuthType=0;OAuthPvtKeyPath=MyOAuthPvtKeyPath;

使用表/字段名称映射

修改数据源中的表名或列名,使其在数据集中显示为希望的名称。

详情请见使用表/字段名称映射(修改数据源表名或列名)

4. (可选)可通过单击页面左下角的测试数据连接测试连接是否正常。

image2022-1-7_15-45-1.png

连接成功后,单击确定

image2019-11-4_17-33-26.png

5. 单击创建,创建数据源。

image2022-1-7_15-45-49.png

数据源管理

数据源创建成功后,可在门户网站中对其进行管理操作。

可以像其他文档一样进行编辑、复制链接、管理分类、删除、下载、重命名等一系列管理操作,具体操作请详见门户网站介绍