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:
- Edit the
hive-env.sh
file to setSPLIT_HIVE_LOGS_INTO_FILES
property tofalse
.export SPLIT_HIVE_LOGS_INTO_FILES="false"
NOTETo restore the default behavior from your previous Hive log configuration, set theSPLIT_HIVE_LOGS_INTO_FILES
property totrue
, or comment out this property and restart Hive services. - Restart Hive services.