You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Jarek Jarcec Cecho (JIRA)" <ji...@apache.org> on 2014/08/14 02:20:12 UTC
[jira] [Commented] (SQOOP-1432) Make Sqoop compiles with avro-1.7.7
[ https://issues.apache.org/jira/browse/SQOOP-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14096338#comment-14096338 ]
Jarek Jarcec Cecho commented on SQOOP-1432:
-------------------------------------------
Avro is usually shipped with Hadoop distribution, so I don't think that we have the luxury of forcing the version ourselves. We should probably consider taking safer approach that will identify what version is available on the classpath and will use the correct value.
I've noticed that the file {{AvroOutputFormat}} have following comment:
{code}
Note: This class is copied from the Avro project in version 1.5.4 and
adapted here to work with the "new" MapReduce API that's required in Sqoop.
{code}
1.5.4 is really super old version, so perhaps it's time to use the Avro's version of the file?
> Make Sqoop compiles with avro-1.7.7
> -----------------------------------
>
> Key: SQOOP-1432
> URL: https://issues.apache.org/jira/browse/SQOOP-1432
> Project: Sqoop
> Issue Type: Improvement
> Affects Versions: 1.4.4
> Reporter: fang fang chen
> Attachments: SQOOP-1432.patch
>
>
> In Avro-1.7.7, DEFAULT_DEFLATE_LEVEL has not been in AvroOutputFormat(avro-1.7.5) any more, while is defined in class CodecFactory(avro-1.7.7). And the value also changed from int "1"(avro-1.7.5) to int "-1"(avro-1.7.7).
> The change set should include:
> src/java/org/apache/sqoop/mapreduce/AvroOutputFormat.java
> -import static org.apache.avro.mapred.AvroOutputFormat.DEFAULT_DEFLATE_LEVEL;
> +import static org.apache.avro.file.CodecFactory.DEFAULT_DEFLATE_LEVEL;
--
This message was sent by Atlassian JIRA
(v6.2#6252)