You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "David Jacot (JIRA)" <ji...@apache.org> on 2014/11/18 08:35:33 UTC

[jira] [Updated] (SPARK-3965) Spark assembly for hadoop2 contains avro-mapred for hadoop1

     [ https://issues.apache.org/jira/browse/SPARK-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jacot updated SPARK-3965:
-------------------------------
    Affects Version/s: 1.2.0

> Spark assembly for hadoop2 contains avro-mapred for hadoop1
> -----------------------------------------------------------
>
>                 Key: SPARK-3965
>                 URL: https://issues.apache.org/jira/browse/SPARK-3965
>             Project: Spark
>          Issue Type: Bug
>          Components: Input/Output
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>         Environment: hadoop2, HDP2.1
>            Reporter: David Jacot
>
> When building Spark assembly for hadoop2, org.apache.avro:avro-mapred for hadoop1 is picked and added to the assembly which leads to following exception at runtime.
> {code}
> java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected
>         at org.apache.avro.mapreduce.AvroKeyInputFormat.createRecordReader(AvroKeyInputFormat.java:47)
>         at org.apache.spark.rdd.NewHadoopRDD$$anon$1.<init>(NewHadoopRDD.scala:111)
> ...
> {code}
> The patch for SPARK-3039 works well at compile time but artefact's classifier is not applied when assembly is built. I'm not a maven expert but I don't think that classifiers are applied on transitive dependencies.



--
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