从Spark发出HTTP请求时出错

时间:2019-03-15 18:03:20

标签: apache-spark

我正在使用内部服务,该服务使用org.asynchttpclient库进行HTTP请求。在我的Spark应用程序中,当进行远程http调用时,我看到Http 408。该请求经过haproxy,看起来请求无法完成,并显示以下错误

java.lang.IllegalAccessError: tried to access method io.netty.channel.DefaultChannelId.<init>()V from class org.asynchttpclient.netty.channel.Channels
    at org.asynchttpclient.netty.channel.Channels.initChannelId(Channels.java:67)
    at org.asynchttpclient.netty.request.NettyChannelConnector$1.onSuccess(NettyChannelConnector.java:90)
    at org.asynchttpclient.netty.SimpleChannelFutureListener.operationComplete(SimpleChannelFutureListener.java:26)
    at org.asynchttpclient.netty.SimpleChannelFutureListener.operationComplete(SimpleChannelFutureListener.java:20)
    at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507)
    at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:500)
    at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:479)
    at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420)
    at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104)
    at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:82)

0 个答案:

没有答案