我正在使用Apache Hive最新版本。 Apache的蜂房1.2.1。 据说Apache Hive现在支持Update,Delete语句。
但我无法删除行。行为如下。
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.
编辑:How to delete and update a record in Hive的讨论提到新版本的Hive支持这些操作。但我在这里的经历是不同的。 所以这个问题特定于新版本以及如何启用这些操作。