Permalink
Browse files

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

  • Loading branch information...
1 parent 811aad9 commit 899a2c44cd25aca6c469d6c2fdb8419e66dda380 @tomwhite committed Sep 20, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/com/linkedin/haivvreo/AvroSerDe.java
@@ -53,6 +53,8 @@ public void initialize(Configuration configuration, Properties properties) throw
// so we have to be defensive here
if (configuration != null) {
configuration.set(HAIVVREO_SCHEMA, schema.toString(false));
+ // force output files to have a .avro extension
+ configuration.set("hive.output.file.extension", ".avro");
}
badSchema = schema.equals(SchemaResolutionProblem.SIGNAL_BAD_SCHEMA);

0 comments on commit 899a2c4

Please sign in to comment.