Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2465

Fix a wrong description in the avro-tools random's usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.9.1
    • java, tools
    • None

    Description

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

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

      But actually the deflate codec is used.

      $ 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
      

      Attachments

        Issue Links

          Activity

            People

              sekikn Kengo Seki
              sekikn Kengo Seki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: