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

Allow DataFileWriteTool to accept schema files as input

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: java
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      The "fromjson" tool now requires either a --schema or --schema-file command-line argument to specify the schema. Previously, the schema was to be specified as the first argument.

      Description

      For non-trivial schemas, it's difficult to pass them inline as a command line argument. I made a patch to use two different arguments: instead of having the first argument be the schema you would now use -schema-file file or -schema schema and then have one other argument (the input JSON file)

        Attachments

        1. datafilewritefile.patch
          3 kB
          Ron Bodkin
        2. AVRO-670.patch
          6 kB
          Ron Bodkin

          Activity

            People

            • Assignee:
              rbodkin Ron Bodkin
              Reporter:
              rbodkin Ron Bodkin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: