功能
Hive History 可以打印像 查询语句,查询计划,运行时统计信息等日志到一个文件。默认不开启。
开启方法
hive-site.xml
<property>
<name>hive.session.history.enabled</name>
<value>true</value>
<description>Whether to log Hive query, query plan, runtime statistics etc.</description>
</property>
<property>
<name>hive.querylog.location</name>
<value>${PATH-TO-LOG-FILE}</value>
<description>Location of Hive run time structured log file"),Default: "${system:java.io.tmpdir}" + File.separator + "${system:user.name}"</description>
</property>