Hive Features in HPE Ezmeral Data Fabric

Describes HPE Ezmeral Data Fabric-specific features in Hive.

Removing Temporary Hive Files

Starting from EEP 8.1.0, EEP 7.1.2, and EEP 6.3.6, to remove the temporary Hive files created during the Hive session, set the value of hive.scratchdir.lock property to true on hive-site.xml file.
<property> 
   <name>hive.scratchdir.lock</name> 
   <value>true</value> 
</property>

For the previous EEP versions, manually remove the temporary Hive files that are not used by the active Hive sessions.

You have two different situations:
  • If you have configured the HiveServer2 in a node, set hive.scratchdir.lock property on the hive-site.xml file to automatically remove the temporary Hive files.

  • If you have not configured the HiveServer2 in a node, set the hive.scratchdir.lock property and run the following command to remove the temporary Hive files.
    hive --service cleardanglingscratchdir