Apache Avro Tools
$ avro-tools Foundation Low Riskavro-tools is the Apache Avro Java CLI (avro-tools wrapper or java -jar avro-tools.jar) providing getschema, tojson, fromjson, count, and cat subcommands to inspect binary Avro files and convert records to JSON.
brew install avro-tools Decodes binary Apache Avro container files locally (avro-tools getschema, avro-tools tojson --head 20) without custom Java/Python readers.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Outputs NDJSON/JSON via tojson and getschema with --head, but JVM startup is heavy and CLI help/error formatting is minimal.
- Supports
tojson --head --prettyandgetschema - Sparse CLI help and JVM startup latency
Read-only stdout inspection for getschema, count, and tojson; writes only via shell redirection or fromjson.
- Read-only inspection subcommands by default
Requires a Java JRE (java -jar avro-tools.jar or Homebrew wrapper script) rather than a standalone native binary.
- JVM/JAR distribution (
brew install avro-tools)
Standard tool for .avro container files, though datafusion-cli or fastavro can be faster for bulk analytics.
- Canonical Apache Avro container inspection CLI
Official Apache Software Foundation project (apache/avro) under Apache-2.0.
- Official ASF
apache/avrorepository
CLI subcommands are sparsely documented on avro.apache.org compared to the core Java/Python Avro APIs.
- Minimal dedicated CLI reference in upstream docs
Security, Auth & Guardrails
None; operates purely on local .avro and .avsc files.
Apache-2.0 open-source CLI; completely free.
# avro-tools Agent Rules - Run `avro-tools getschema` and `avro-tools count` before decoding records. - Always pass `--head <N>` on `avro-tools tojson` for unknown `.avro` files to avoid flooding stdout.
Agent-Ready Command Recipes
Safe Read-Only Queries
avro-tools getschema data.avro
Prints the JSON .avsc schema embedded in the container header without decoding records.
avro-tools tojson --head 20 --pretty data.avro
Decodes the first 20 records from data.avro and formats them as readable JSON.
Controlled Writes & Previews
avro-tools tojson data.avro > records.jsonl
Exports all Avro records as newline-delimited JSON into records.jsonl.
Strengths for Agents
- +
getschemaandtojson --headdecode binary.avrofiles deterministically into JSON. - + Official Apache Software Foundation reference implementation.
Caveats & Pitfalls
- ! Requires Java runtime (JRE) and suffers noticeable JVM cold-start overhead.
- ! Running
avro-toolswithout arguments prints a bare list of subcommands with minimal flag docs.