您的位置:首页 > 其它

hive参数配置

2017-07-11 11:21 232 查看

CLI参数

两种修改方式:

1)启动时 hive --hiveconf hive.cli.print.current.db=true

2)修改当前用户home目录下 .hiverc文件,hive cli默认加载此文件 每个配置项以分号结束

显示当前数据库名  hive.cli.print.current.db=true

小数据集自动本地执行  hive.exec.mode.local.auto=true

打印字段名称    hive.cli.print.header=true

严格模式      hive.mapred.mode=strict //非严格模式默认 hive.mapred.mode=nonstrict

hive-site.xml

hive.metastore.warehouse.dir 数据仓库根目录,默认是/user/hive/warehouse

hive.mapred.mode 严格模式,strict
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: