Managing Hive Query Log Files
When you run a query from the Hive CLI, logs are stored for every query run (BeeLine and JDBC clients will not create these). You can manage these query log files as follows:
- Set the location of the query log files (by default /tmp/user) and reduce amount of logging by disabling progress based query logging by specifying the following properties in the Hive Service Configuration Safety Valve for hive-site.xml and Hive Client Configuration Safety Valve for hive-site.xml :
<property> <name>hive.querylog.location</name> <value>/Changed/Log/Directory</value> </property> <property> <name>hive.querylog.enable.plan.progress</name> <value>false</value> </property>
- Save the changes to the configurations.
- Restart the Hive service and redeploy client configurations.
<< Previous: Hive Table Statistics | Next: Using User-Defined Functions (UDFs) with HiveServer2 >> |