Hive 在 hiveconf
中记录了有关设置变量的信息
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+VariableSubstitution
我知道还有一种使用${parameter}
(不是hiveconf
)传递参数的方法,例如
select * from table_one where variable = ${parameter}
然后 hive
编辑器会在您提交查询时提示您输入 parameter
的值。
我找不到 Apache hadoop
在哪里记录这种传递参数的方式。这种传递参数的方式是hive
或oozie
固有的吗?如果是oozie
为什么可以在hive
编辑器中使用?
最佳答案
这是 Hue 的一个特征. Cloudera 文档中提到了此功能,至少对于旧版本是这样。例如,Hive Query Editor User Guide描述它。
PARAMETERIZATION Indicate that a dialog box should display to enter parameter values when a query containing the string $parametername is executed. Enabled by default.
关于hadoop - 在查询中手动传递参数 ${parameter} 的文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45274151/