【发布时间】:2018-01-30 12:18:37
【问题描述】:
我正在使用 Hue 4 pig 编辑器并直接从 hue 运行 pig 脚本。在 hue 3.12 中我们有参数,我们可以将参数添加到 2 个字段名称、值中
在 Hue 3.12 中我可以通过
Name=myparamname and Value=myvalue
在 Hue 4 中我只有 1 个字段 - 内部带有图案的参数
input /user/data, -param input=/user/data
但它不起作用。当我将猪脚本参数放入此字段时,例如
YEAR 2018 或 -param YEAR=2018 pig 不会在运行时初始化它们。我的参数 YEAR 为空:
Pig command arguments :
-file
pig-a204.pig
-param
YEAR=
究竟应该将什么传递给参数字段来调整我的脚本以使用在 hue pig 编辑器中设置的参数运行?
【问题讨论】:
标签: hadoop apache-pig cloudera cloudera-cdh hue