小编Riy*_*han的帖子

如何在hive脚本中传递多个参数

员工: 表数据

我想通过运行hive脚本sample.hql来获取year = 2016的记录.

use octdb;
select * from '${hiveconf:table}' where year = '${hiveconf:year}';

[cloudera@quickstart ~]$ hive -hiveconf table='employee', year=2016 -f sample.hql
Run Code Online (Sandbox Code Playgroud)

但我收到错误NoViableAltException(307 @ []).......

shell hive hiveql

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

hive ×1

hiveql ×1

shell ×1