You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Stan (JIRA)" <ji...@apache.org> on 2016/03/15 16:51:33 UTC

[jira] [Commented] (SPARK-4738) Update the netty-3.x version in spark-assembly-*.jar

    [ https://issues.apache.org/jira/browse/SPARK-4738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15195528#comment-15195528 ] 

Stan commented on SPARK-4738:
-----------------------------

[~joshrosen] : Using _user-classpath-first_ is not a workaround in my case.

I use a Cloudera CDH 5.6.0 and I got this exception when running my app in a Yarn cluster. If I add the {{--conf 'spark.driver.userClassPathFirst=true'}} flag, I have a ton of other exceptions because of dependencies loaded from the fat jar instead of _/opt/cdh/etc_.
I was able to fix some of them by manually removing dependencies in the build.sbt and by adding some exclude rules but eventually my app fails with some very low-level error.

{code:java}
java.lang.NoSuchMethodError: org.jboss.netty.handler.codec.http.HttpRequest.headers()Lorg/jboss/netty/handler/codec/http/HttpHeaders;
	at com.ning.http.client.providers.netty.request.NettyRequestFactory.newNettyRequest(NettyRequestFactory.java:293
{code}

Thanks

> Update the netty-3.x version in spark-assembly-*.jar
> ----------------------------------------------------
>
>                 Key: SPARK-4738
>                 URL: https://issues.apache.org/jira/browse/SPARK-4738
>             Project: Spark
>          Issue Type: Improvement
>          Components: Deploy
>    Affects Versions: 1.1.0
>            Reporter: Tobias Pfeiffer
>            Priority: Minor
>
> It seems as if the version of akka-remote (2.2.3-shaded-protobuf) that is bundled in the spark-assembly-1.1.1-hadoop2.4.0.jar file pulls in an ancient version of netty, namely io.netty:netty:3.6.6.Final (using the package org.jboss.netty). This means that when using spark-submit, there will always be this netty version on the classpath before any versions added by the user. This may lead to issues with other packages that depend on newer versions and may fail with java.lang.NoSuchMethodError etc.(finagle-http in my case).
> I wonder if it possible to manually include a newer netty version, like netty-3.8.0.Final.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org