SpringCloud Alibaba集成Presto 0.242/0.243.2应用报错问题

1. Request Header Fields Too Large

; uncategorized SQLException; SQL state [null]; error code [0]; Error executing query; nested exception is java.sql.SQLException: Error executing query
...
reason: Request Header Fields Too Large
...

解决办法:修改preoto的config.properties,增加参数:http-server.max-request-header-size=5MB,修改完成后重启presto(最好连应用一起重启)

2.Error fetching next at xxx returned an invalid response: JsonResponse{statusCode=500, statusMessage=Server Error, headers={connection=[close]}, hasValue=false} [Error: ]

### Cause: java.sql.SQLException: Error executing query
; uncategorized SQLException; SQL state [null]; error code [0]; Error executing query; nested exception is java.sql.SQLException: Error executing query
...
Caused by: java.lang.RuntimeException: Error fetching next at http://123.123.123.123:9080/v1/statement/queued/20201116_122530_00085_jybpp/2?slug=xa38a60b1053e4d6093e7c1d56550091b returned an invalid response: JsonResponse{statu
sCode=500, statusMessage=Server Error, headers={connection=[close]}, hasValue=false} [Error: ]
    at com.facebook.presto.jdbc.internal.client.StatementClientV1.requestFailedException(StatementClientV1.java:446) ~[presto-jdbc-0.243.2.jar!/:0.243.2-128118e]
    at com.facebook.presto.jdbc.internal.client.StatementClientV1.advance(StatementClientV1.java:386) ~[presto-jdbc-0.243.2.jar!/:0.243.2-128118e]
    at com.facebook.presto.jdbc.PrestoResultSet.getColumns(PrestoResultSet.java:1743) ~[presto-jdbc-0.243.2.jar!/:0.243.2-128118e]
    at com.facebook.presto.jdbc.PrestoResultSet.<init>(PrestoResultSet.java:121) ~[presto-jdbc-0.243.2.jar!/:0.243.2-128118e]
    at com.facebook.presto.jdbc.PrestoStatement.internalExecute(PrestoStatement.java:250) ~[presto-jdbc-0.243.2.jar!/:0.243.2-128118e]
    ... 137 common frames omitted

异常信息与第一个错误基本一样,区别是没有request header部分信息

解决办法:修改preoto的config.properties,增加参数:http-server.max-response-header-size=5MB,修改完成后重启presto(最好连应用一起重启)

  • 7
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值