问题描述
我正在尝试使用JDBC驱动程序来连接到presto,但是当我运行该进程时,我得到了:
Error Cause java.io.UncheckedioException: java.io.IOException: Failed to authenticate with proxy
我在文档中看到,我们可以传递属性 httpProxy ,但不能传递身份验证给它。
我正在使用以下版本: 0.239.1
String url = "jdbc:presto://MY-SERVER:PORT/dal_hms_prod/default?user=USERNAME&password=PASSWORD&SSL=true";
Properties properties = new Properties();
properties.setProperty("httpProxy","PROXY_SERVER:PORT");
Connection connection = DriverManager.getConnection(url,properties);
log.info("Connection stablished "+connection.getSchema());
Statement stmt = connection.createStatement();
String sql = "select test from usersource.usersource_flat limit 1;";
ResultSet res = stmt.executeQuery(sql);
希望有人可以给我一些见解。谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)