我编写了一个非常简单的 Python,这是我的 UDF 代码、猪代码和错误消息,有什么想法吗?谢谢。
UDF (test.py),
@outputSchema("cookie:chararray")
def getSimple():
return 'Hello'
猪码,
register test.py using jython as TestSimple;
a = TestSimple.getSimple() as word;
错误信息,
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 1, column 0> Syntax error, unexpected symbol at or near 'a'
提前谢谢, 林