蜂巢 - 内部如何运作

时间:2015-10-15 15:50:06

标签: hadoop hive metastore

例如:

select * from <tablename> where <condition>  
select sum() from tablename where <condition>

基本上是过滤,分组,聚合 - 它将生成MR Job,我们将能够在Resource Manager UI中看到它。

让我们说:例如:

show tables  
show database  
select * from tablename  
select count(*) from tablename  
Describe commands  

这些类型的查询不需要MR作业,也不会显示在RM中,因为此信息在MetaStore中可用作属性。 蜂巢会记录一些地方吗?我们可以识别这些查询吗?

1 个答案:

答案 0 :(得分:0)

默认情况下,hive将日志存储在/tmp/user目录中。但是您可以使用hive-site.xml文件中的hive.querylog.location属性来设置它。