Unix Shell脚本作为Pig和Hive的UDF [英] Unix Shell Script as UDF for Pig and Hive

查看:236
本文介绍了Unix Shell脚本作为Pig和Hive的UDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以使用unix shell脚本代替Apache Pig和Hive中的用户定义(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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆