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:
  1. 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>
  2. Save the changes to the configurations.
  3. Restart the Hive service and redeploy client configurations.