I am using Apache Hive latest available version viz. apache-hive-1.2.1. It is said that Apache Hive now supports Update, Delete statements.
But I am not able to delete rows. Behavior is as follows.
hive> delete employee;
Usage: delete [FILE|JAR|ARCHIVE] <value> [<value>]*
Query returned non-zero code: 1, cause: null
hive> delete * from employee;
Usage: delete [FILE|JAR|ARCHIVE] <value> [<value>]*
Query returned non-zero code: 1, cause: null
hive> delete from employee where 1=2;
FAILED: SemanticException [Error 10294]: Attempt to do update or delete using transaction manager that does not support these operations.
EDIT : Discussion at How to delete and update a record in Hive mentions that new version of Hive supports these operations. But my experience here is different. So this question is specific to new version and how to enable these operations.