Disabling Log Splitting of Hive Log Files

By default, Hive log files are split into HiveServer2 and Metastore log files, but you can disable log splitting by editing the hive-env.sh file.

This information is valid for Hive-2.1+ starting from the EEP-1803 release.

Disabling Log Splitting of Hive Log Files

You can disable splitting the Hive log files into HiveServer2 and Metastore log files. To write all logs to the hive.log file, use these steps:

  1. Edit the hive-env.sh file to set SPLIT_HIVE_LOGS_INTO_FILES property to false.
    export SPLIT_HIVE_LOGS_INTO_FILES="false"
    NOTE
    To restore the default behavior from your previous Hive log configuration, set the SPLIT_HIVE_LOGS_INTO_FILES property to true, or comment out this property and restart Hive services.
  2. Restart Hive services.