Skip to content

Commit

Permalink
fix the documented property name for specifying avro reader schema (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshug authored and fjy committed Nov 22, 2016
1 parent 7ee6bb7 commit 7d37f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/development/extensions-core/avro.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Details can be found in Schema Registry [documentation](http://docs.confluent.io

### Avro Hadoop Parser

This is for batch ingestion using the HadoopDruidIndexer. The `inputFormat` of `inputSpec` in `ioConfig` must be set to `"io.druid.data.input.avro.AvroValueInputFormat"`. You may want to set Avro reader's schema in `jobProperties` in `tuningConfig`, eg: `"avro.schema.path.input.value": "/path/to/your/schema.avsc"` or `"avro.schema.input.value": "your_schema_JSON_object"`, if reader's schema is not set, the schema in Avro object container file will be used, see [Avro specification](http://avro.apache.org/docs/1.7.7/spec.html#Schema+Resolution). Make sure to include "io.druid.extensions:druid-avro-extensions" as an extension.
This is for batch ingestion using the HadoopDruidIndexer. The `inputFormat` of `inputSpec` in `ioConfig` must be set to `"io.druid.data.input.avro.AvroValueInputFormat"`. You may want to set Avro reader's schema in `jobProperties` in `tuningConfig`, eg: `"avro.schema.input.value.path": "/path/to/your/schema.avsc"` or `"avro.schema.input.value": "your_schema_JSON_object"`, if reader's schema is not set, the schema in Avro object container file will be used, see [Avro specification](http://avro.apache.org/docs/1.7.7/spec.html#Schema+Resolution). Make sure to include "io.druid.extensions:druid-avro-extensions" as an extension.

| Field | Type | Description | Required |
|-------|------|-------------|----------|
Expand Down Expand Up @@ -180,7 +180,7 @@ For example, using Avro Hadoop parser with custom reader's schema file:
},
"tuningConfig" : {
"jobProperties" : {
"avro.schema.path.input.value" : "/path/to/my/schema.avsc"
"avro.schema.input.value.path" : "/path/to/my/schema.avsc"
}
}
}
Expand Down

0 comments on commit 7d37f67

Please sign in to comment.