0

私は非常に単純な 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'

前もって感謝します、リン

4

1 に答える 1