Presto coordinator returning 404 error when connecting through Terradata odbc driver

半腔热情 提交于 2020-06-29 08:58:16

问题


I am attempting to connect to a presto coordinator that resides on an EMR cluster. I am using the Terradata ODBC driver. I have both tested the driver by putting the pertinent details into the DSN via ODBC connections dialog and written a simple C# application that creates a connection (see the code below).

The problem is that I am getting a 404 error returned when the connection is either tested in the DSN dialog or opened in the C# code.

I believe the security group settings in AWS are fine as I am definitely getting through to the master node which is configured to have port 8080 open.

var connectionString = "Driver=Teradata Presto ODBC Driver;Host=xxx;Port=8080";
OdbcConnection cn = new OdbcConnection(connectionString);
OdbcCommand cmd = new OdbcCommand(sql, cn);
cn.Open();

This code when run will throw an exception with "ERROR [HY000] [Teradata][Presto] (1040) Error with HTTP request, response code: 404" as a message.

Am banging my head against the wall with this one. Any insights are very much appreciated.


回答1:


The problem was the port I was connecting to Presto on. I had got it in my head that it was 8080 but in fact it was 8889.



来源:https://stackoverflow.com/questions/39756752/presto-coordinator-returning-404-error-when-connecting-through-terradata-odbc-dr

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