Kengo Seki created AVRO-2465:
--------------------------------

             Summary: Fix a wrong description in the avro-tools random's usage
                 Key: AVRO-2465
                 URL: https://issues.apache.org/jira/browse/AVRO-2465
             Project: Apache Avro
          Issue Type: Bug
          Components: java, tools
            Reporter: Kengo Seki
            Assignee: Kengo Seki


{{avro-tools random}}'s usage says the default compression codec is null:

{code}
$ java -jar lang/java/tools/target/avro-tools-1.10.0-SNAPSHOT.jar random
Usage: outFile (filename or '-' for stdout)
Option                  Description                                       
------                  -----------                                       
--codec <String>        Compression codec (default: null)                 
{code}

But actually the deflate codec is used.

{code}
$ java -jar lang/java/tools/target/avro-tools-1.10.0-SNAPSHOT.jar random 
--count 0 --schema-file share/test/schemas/weather.avsc /tmp/outFile.avro
$ java -jar lang/java/tools/target/avro-tools-1.10.0-SNAPSHOT.jar getmeta 
/tmp/outFile.avro 
avro.schema     {"type":"record","name":"Weather","namespace":"test","doc":"A 
weather 
reading.","fields":[{"name":"station","type":"string","order":"ignore"},{"name":"time","type":"long"},{"name":"temp","type":"int"}]}
avro.codec      deflate
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to