0
我寫了一個非常簡單的Python,這裏是我的UDF代碼,豬代碼和錯誤消息,任何想法是什麼錯?謝謝。簡單的Python UDF問題Hadoop豬
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'
在此先感謝, 林
這是無效的「豬」語法。 – gobrewers14