Help Center/ MapReduce Service/ Component Operation Guide (LTS) (Ankara Region)/ Using Hive/ Common Issues About Hive/ How Do I Prevent Key Directories from Data Loss Caused by Misoperations of the insert overwrite Statement?
Updated on 2024-11-29 GMT+08:00

How Do I Prevent Key Directories from Data Loss Caused by Misoperations of the insert overwrite Statement?

Question

How do I prevent key directories from data loss caused by misoperations of the insert overwrite statement?

Answer

During monitoring of key Hive databases, tables, or directories, to prevent data loss caused by misoperations of the insert overwrite statement, configure hive.local.dir.confblacklist in Hive to protect directories.

This configuration item has been configured for directories such as /opt/ and /user/hive/warehouse by default.

Prerequisites

The Hive and HDFS components are running properly.

Procedure

  1. Log in to FusionInsight Manager.
  2. Choose Cluster > Services > Hive. Click Configurations then All Configurations, and search for the hive.local.dir.confblacklist parameter.
  1. Add paths of databases, tables, or directories to be protected in the parameter value.
  2. Click Save to save the settings.