将SQL SERVER 2012与PrestoDB连接

时间:2018-07-24 12:51:59

标签: sql-server hdfs presto

我正在尝试使用Ubuntu 16.04在VM上使用PrestoDB工具远程访问SQL SERVER 2012。

SQL SERVER连接器代码-

connector.name=sqlserver
connection-url=jdbc:sqlserver://[my-ip-here[][]]
connection-user=myusername
connection-password=mypassword

运行查询时,我得到:

Query 20180724_110702_00000_uq6s5 failed: The TCP/IP connection to the 
host [my-ip-here[][]], port 1433 has failed. Error: "my-ip-here[][].
Verify the connection properties. Make sure that an instance of SQL 
Server is running on the host and accepting TCP/IP connections at the 
port. Make sure that TCP connections to the port are not blocked by a 
firewall.

我为PostgreSQL做过同样的事情,并且工作正常。

0 个答案:

没有答案