现在一般不手动配置hive参数,一般都使用默认的配置
只有极个别情况下的jvm内存相关参数设置需要特别指定
常见的hive参数如下
- 通过配置文件
- hive-site.xml
- hive-default.xml
- 在进入hive cli的时候指定配置
- hive –hiveconf param=value来设定session级参数
- 进入到hive cli之后可以通过set进行设置
- set tez.queue.name=oncourse;//设置任务执行的队列
- 通过shell脚本,hive -e做参数设置和脚本执行
- 例如:
#!/bin/sh db="student" table_name="practice_set " hive -e " use $db; set tez.queue.name=oncourse; select count(1) from $table_name; "
- 执行脚本 sh hive_shell.sh



