Help Center/ MapReduce Service/ Component Operation Guide (LTS) (Ankara Region)/ Using Spark/ Spark FAQ/ What Should I Do If Recycle Bin Version I Set on the Spark Client Does Not Take Effect?
Updated on 2024-11-29 GMT+08:00

What Should I Do If Recycle Bin Version I Set on the Spark Client Does Not Take Effect?

Symptom

The setting of fs.obs.hdfs.trash.version=1 on the Spark client did not take effect. After table was dropped, the path for storing files in the recycle bin remained unchanged.

  • If fs.obs.hdfs.trash.version is set to 2, the recycle bin path is /user/.Trash/${userName}/Current.
  • If fs.obs.hdfs.trash.version is set to 1, the recycle bin path is /user/${userName}/.Trash/Current.

Procedure

Log in to FusionInsight Manager and choose Cluster > Services > Hive, click Configurations > All Configurations, and select MetaStore (Role) > Customization. On the displayed page, set hive.metastore.customized.configs. Set fs.obs.hdfs.trash.version to 1, save the settings, and restart the Metastore instance.

After Hive Metastore is configured, the recycle bin path is correct.