gpt4 book ai didi

HIVE 查询日志位置

转载 作者:行者123 更新时间:2023-12-05 01:36:37 25 4
gpt4 key购买 nike

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

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

select foo, count(*) from table where field=value group by foo;

最佳答案

来自 Hive documentation :

hive.exec.scratchdir Default Value:

  • /tmp/${user.name} in Hive 0.2.0 through 0.8.0
  • /tmp/hive-${user.name} in Hive 0.8.1 through 0.14.0
  • /tmp/hive in Hive 0.14.0 and later

This directory is used by Hive to store the plans for different map/reduce stages for the query as well as to stored the intermediate outputs of these stages

hive.start.cleanup.scratchdir Default Value: false

关于HIVE 查询日志位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34675978/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com