Unix Shell 脚本作为 Pig 和 Hive 的 UDF [英] Unix Shell Script as UDF for Pig and Hive
本文介绍了Unix Shell 脚本作为 Pig 和 Hive 的 UDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于 Apache Pig 和 Hive 中的用户定义,我们可以使用 unix shell 脚本而不是使用(Java 或 Python)吗?
Can we use unix shell script instead of using (Java or Python) for User Defined in Apache Pig and Hive?
如果可以,我们如何在 Hive Query 或 Pig 脚本中提及?
If it is possible how can we mention in Hive Query or Pig script?
推荐答案
不,您不能将 unix shell 脚本用作 Pig UDF.Pig UDF 目前仅支持六种语言:Java、Jython、Python、JavaScript、Ruby 和 Groovy.
No, you can't use unix shell script as Pig UDF. Pig UDFs are currently supported only in six languages: Java, Jython, Python, JavaScript, Ruby and Groovy.
请参阅此链接了解更多详情
http://pig.apache.org/docs/r0.14.0/udf.html
Please refer this link for more details
http://pig.apache.org/docs/r0.14.0/udf.html
这篇关于Unix Shell 脚本作为 Pig 和 Hive 的 UDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文