Is there a google supported JDBC driver for BigQuery?

你离开我真会死。 提交于 2019-12-10 20:15:18

问题


We are looking to access BigQuery through third party sql clients, ex. RazorSql. I came across StarSchema JDBC driver and I could not make it work with Razorsql and on the webpage it says that the project was archived. So, not sure if its supposed to work. Any suggestions?

The error I get when trying to use it with RazoeSql is:

java.io.IOException: toDerInputStream rejects tag type 123

I am using a service account key file for authentication.

This is JDBC url value I use (where "my-poc" is the project id and "MY_POC" is the dataset name):

jdbc:BQDriver:my-poc%3AMY_POC?withServiceAccount=true

回答1:


Alas, no there isn't a JDBC driver that is officially supported. There is an ODBC driver developed by Simba in conjunction with google (you can download it here for free), and you can use a JDBC to ODBC bridge (although the official one is deprecated in java 8, I believe you can download one from a couple of different folks (here, for example).

Admittedly, this is not a great solution. IMO Google really should provide a JDBC driver, but they do not.




回答2:


java.io.IOException: toDerInputStream rejects tag type 123

The JDBC driver requires a p12 formatted file instead of the json formatted file.



来源:https://stackoverflow.com/questions/34443600/is-there-a-google-supported-jdbc-driver-for-bigquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!