You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Kengo Seki (JIRA)" <ji...@apache.org> on 2019/07/05 08:24:00 UTC

[jira] [Created] (AVRO-2465) Fix a wrong description in the avro-tools random's usage

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)