Erroir when using HPL/SQL function in Hive CTL

2018-07-19 Thread Kangfei Zhao
Hi All, I follow the steps in http://www.hplsql.org/udf run hplsql function in Hive CTL. However it have the error and I cannot find ideas to fix it. hive> add jar /usr/local/hive/lib/hive-hplsql-2.3.3.jar; Added [/usr/local/hive/lib/hive-hplsql-2.3.3.jar] to class path Added resources: [/usr/loc

Hive Error when using python UDF: An error occurred when trying to close the Operator running your custom script

2018-07-10 Thread Kangfei Zhao
Hi, I'm a freshman of Hive and try to use the UDF of python script. I wrote a simple projection function in add.py #!/usr/local/python/bin/python import sys import string try: line = sys.stdin.readline() a, b = string.split(line, "\t") print a except: print sys.exc