hive可配置变量列表

变量名描述默认值
hive.partition.pruning分区裁剪检查,查询分区表时如果不指定分区编译器是否报错(A strict value for this variable indicates that an error is thrown by the compiler in case no partition predicate is provided on a partitioned table. This is used to protect against a user inadvertently issuing a query against all the partitions of the table.)nonstrict
hive.map.aggrmap断是否做聚合(Determines whether the map side aggregation is on or not.)true
hive.default.fileformat创建表的默认存储格式(Default file format for CREATE TABLE statement. Options are TextFile, SequenceFile, RCFile, and Orc.)TextFile
hive.merge.mapfiles在仅有map的job结束后是否合并小文件(Merge small files at the end of a map-only job.)true
hive.merge.mapredfilesmapred job结束后是否做小文件合并(Merge small files at the end of a map-reduce job.)false
hive.merge.size.per.task任务结束后合并文件的大小(Size of merged files at the end of the job.)256000000(大约256M)
hive.merge.smallfiles.avgsize当任务结束后输出文件小于该值时,hive会附带启动一个mr job将小文件合并成大文件,这个只有在hive.merge.mapfiles=true(map only任务)和hive.merge.mapredfiles=true(mapred任务)时才生效(When the average output file size of a job is less than this number, Hive will start an additional map-reduce job to merge the output files into bigger files. This is only done for map-only jobs if hive.merge.mapfiles is true, and for map-reduce jobs if hive.merge.mapredfiles is true.)16000000(大约16M)
hive.querylog.locationhive query log的存放目录,hive的每个session都会在该目录下创建一个文件,如果这个变量设置为空,则hive的query log不会生成(Directory where structured hive query logs are created. One file per session is created in this directory. If this variable set to empty string structured log will not be created.)/tmp/<user.name>

参考自:https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

左林右李02

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值