Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Force Avro files to have a '.avro' extension. Requires HIVE-2457.

  • Loading branch information...
commit 899a2c44cd25aca6c469d6c2fdb8419e66dda380 1 parent 811aad9
Tom White authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  src/main/java/com/linkedin/haivvreo/AvroSerDe.java
2  src/main/java/com/linkedin/haivvreo/AvroSerDe.java
@@ -53,6 +53,8 @@ public void initialize(Configuration configuration, Properties properties) throw
53 53 // so we have to be defensive here
54 54 if (configuration != null) {
55 55 configuration.set(HAIVVREO_SCHEMA, schema.toString(false));
  56 + // force output files to have a .avro extension
  57 + configuration.set("hive.output.file.extension", ".avro");
56 58 }
57 59 badSchema = schema.equals(SchemaResolutionProblem.SIGNAL_BAD_SCHEMA);
58 60

0 comments on commit 899a2c4

Please sign in to comment.
Something went wrong with that request. Please try again.