将MapReduce参数提供给配置单元查询

问题描述 投票:0回答:1

有什么方法可以将map reduce参数提供给配置单元查询?例如我正在这样做,并且它没有在MR作业中设置该参数。

hive (default)> set mapreduce.map.output.value.class=org.apache.orc.mapred.OrcValue;
hive (default)> select count(*) from myTable;

[当我检查MR作业配置单元启动的配置时,mapreduce.map.output.value.class的值不是org.apache.orc.mapred.OrcValue

hive mapreduce
1个回答
0
投票

如果需要更改默认的Hive文件格式,请使用hive.default.fileformat选项,即

set hive.default.fileformat=orc;
© www.soinside.com 2019 - 2024. All rights reserved.