HIVE 查询日志位置

SQL*_*ion 5 hive

我发现很难找到 HIVE 查询日志,基本上我想看看执行了哪些查询。

基本上我想在这种状态下找到查询:

select foo, count(*) from table where field=value group by foo;
Run Code Online (Sandbox Code Playgroud)

Sam*_*ter 4

来自Hive 文档

hive.exec.scratchdir默认值:

  • /tmp/${user.name}在 Hive 0.2.0 到 0.8.0 中
  • /tmp/hive-${user.name}在 Hive 0.8.1 到 0.14.0 中
  • /tmp/hive在 Hive 0.14.0 及更高版本中

Hive 使用此目录来存储查询的不同 Map/Reduce 阶段的计划以及存储这些阶段的中间输出

hive.start.cleanup.scratchdir默认值: false