Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.hive.ql.io.orc.CompressionKind.Snappy
Problem: Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.hive.ql.io.orc.CompressionKind.Snappy
Queries:
Screenshots:
Executing hive queries using Tez as the execution engine and the error message in the hive query builder.
The highlighted error messages tells the problem statement,
Solution: The CREATE statement 'orc.compress'='Snappy' should be replaced with 'orc.compress'='SNAPPY'. It is case sensitive.
Queries:
CREATE TABLE movies_temp ( movie_id INT, title STRING, genres ARRAY<STRING> ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' COLLECTION ITEMS TERMINATED BY "|" STORED AS TEXTFILE LOCATION 'LOCATION TO THE FILE IN HDFS'; CREATE EXTERNAL TABLE movies ( movie_id INT, title STRING, genres ARRAY<STRING> ) STORED AS ORC TBLPROPERTIES ('orc.compress'='Snappy','creator'='uvaraj', 'created_on' = '2016-12-30', 'description'='movie details');
INSERT OVERWRITE TABLE movies SELECT * FROM movies_temp;
Executing hive queries using Tez as the execution engine and the error message in the hive query builder.
The highlighted error messages tells the problem statement,
Solution: The CREATE statement 'orc.compress'='Snappy' should be replaced with 'orc.compress'='SNAPPY'. It is case sensitive.


Thanks. It worked for me.
ReplyDelete