我从源代码编译spark-notebook并在尝试运行时遇到错误。 netty版本有问题。
嗯,spark-notebook中有很多组件。这些组件需要不同的netty版本。我试图强迫sbt使用某些特定版本,如
libraryDependencies += "io.netty" % "netty" % "3.6.3.Final" force()
但它没有成功。知道怎么解决吗?
BTW,netty 3.2.5来自org.jboss.netty.netty-3.2.5.Final.jar。还有来自io.netty的netty工件:io.netty.netty-3.6.3.Final.jar。是的,这是一种混乱: - )[error] p.nettyException - Exception caught in Netty
java.lang.NoSuchMethodError: org.jboss.netty.handler.codec.http.HttpRequest.headers()Lorg/jboss/netty/handler/codec/http/HttpHeaders;
at play.core.server.netty.PlayDefaultUpstreamHandler.getHeaders(PlayDefaultUpstreamHandler.scala:366) ~[play_2.11-2.3.10.jar:2.3.10]
at play.core.server.netty.PlayDefaultUpstreamHandler.messageReceived(PlayDefaultUpstreamHandler.scala:87) ~[play_2.11-2.3.10.jar:2.3.10]
at com.typesafe.netty.http.pipelining.HttpPipeliningHandler.messageReceived(HttpPipeliningHandler.java:62) ~[netty-http-pipelining-1.1.2.jar:na]
at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:104) ~[netty-3.2.5.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) ~[netty-3.2.5.Final.jar:na]