如何通过JDBC进行数据仓库连接
JDBC连接常见问题
Q:如何通过JDBC进行数据仓库连接?
A:数据仓库JDBC驱动基于presto-bc开发。JDBC连接信息配置例如:Stringurl="bc:xdata://gateway.jloud.com/instance_name";StringaccessId="xxxxxx";StringaccessKey="xxxxxxx";
其中url中的instance_name为instance名称,instance也可以通过property进行设置,如:properties.setProperty("instance","instance_name");
目前支持华南,华北,需要在properties中增加对region的设置,华南为HN_GZ,华北为HB_BJproperties.setProperty("region","HB_BJ");。
点击下载新版JDBC客户端