[
https://issues.apache.org/jira/browse/PIG-4111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14092409#comment-14092409
]
Rohini Palaniswamy commented on PIG-4111:
-----------------------------------------
Few comments:
1) While org.apache.avro.mapred.AvroOutputFormat.DEFAULT_DEFLATE_LEVEL was 1
(Deflater.BEST_SPEED), org.apache.avro.file.CodecFactory.DEFAULT_DEFLATE_LEVEL
is -1 (Deflater.DEFAULT_COMPRESSION). Can you check if they had 1 instead of
-1 for any specific reason before and is ok to change?
2) org.apache.avro.file.CodecFactory.DEFAULT_DEFLATE_LEVEL was private in
earlier versions. Can you check if that causes any exceptions when run with
older versions (compiled with avro-1.7.7) or it works ok with static variable
resolved during compilation itself?
> Make Pig compiles with avro-1.7.7
> ---------------------------------
>
> Key: PIG-4111
> URL: https://issues.apache.org/jira/browse/PIG-4111
> Project: Pig
> Issue Type: Improvement
> Components: build
> Affects Versions: 0.13.0
> Reporter: fang fang chen
> Assignee: fang fang chen
> Fix For: site
>
> Attachments: PIG-4111-1.patch, PIG-4111.patch
>
>
> pig-0.13 compile failed with avro-1.7.7:
> [javac]
> /root/ff/git/pig/src/org/apache/pig/impl/util/avro/AvroRecordWriter.java:23:
> error: cannot find symbol
> [javac] import static
> org.apache.avro.mapred.AvroOutputFormat.DEFAULT_DEFLATE_LEVEL;
> [javac] ^
> [javac] symbol: static DEFAULT_DEFLATE_LEVEL
> [javac] location: class
> [javac] where T is a type-variable:
> [javac] T extends Object declared in class AvroOutputFormat
> [javac]
> /root/ff/git/pig/src/org/apache/pig/impl/util/avro/AvroRecordWriter.java:76:
> error: cannot find symbol
> [javac] DEFAULT_DEFLATE_LEVEL);
> [javac] ^
> [javac] symbol: variable DEFAULT_DEFLATE_LEVEL
> [javac] location: class AvroRecordWriter
--
This message was sent by Atlassian JIRA
(v6.2#6252)