PREHOOK: query: -- protect mode: syntax to change protect mode works and queries are not blocked if a table or partition is not in protect mode drop table tbl_protectmode_tbl6 PREHOOK: type: DROPTABLE POSTHOOK: query: -- protect mode: syntax to change protect mode works and queries are not blocked if a table or partition is not in protect mode drop table tbl_protectmode_tbl6 POSTHOOK: type: DROPTABLE PREHOOK: query: create table tbl_protectmode_tbl6 (col string) PREHOOK: type: CREATETABLE POSTHOOK: query: create table tbl_protectmode_tbl6 (col string) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@tbl_protectmode_tbl6 PREHOOK: query: alter table tbl_protectmode_tbl6 enable no_drop cascade PREHOOK: type: ALTERTABLE_PROTECTMODE PREHOOK: Input: default@tbl_protectmode_tbl6 PREHOOK: Output: default@tbl_protectmode_tbl6 POSTHOOK: query: alter table tbl_protectmode_tbl6 enable no_drop cascade POSTHOOK: type: ALTERTABLE_PROTECTMODE POSTHOOK: Input: default@tbl_protectmode_tbl6 POSTHOOK: Output: default@tbl_protectmode_tbl6 PREHOOK: query: drop table tbl_protectmode_tbl6 PREHOOK: type: DROPTABLE PREHOOK: Input: default@tbl_protectmode_tbl6 PREHOOK: Output: default@tbl_protectmode_tbl6 FAILED: Error in metadata: Table tbl_protectmode_tbl6 is protected from being dropped FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask