简体   繁体   English

检查python编写的hive udf中的错误

[英]Check the error in the hive udf written in python

I have written a hive udf using python but while running my query using udf.我已经使用 python 编写了一个 hive udf,但是在使用 udf 运行我的查询时。 I am getting the following error in the logs-我在日志中收到以下错误-

Error: java.lang.RuntimeException: Hive Runtime Error while closing operators: [Error 20003]: An error occurred when trying to close the Operator running your custom script.错误:java.lang.RuntimeException:关闭操作符时的 Hive 运行时错误:[错误 20003]:尝试关闭运行自定义脚本的操作符时发生错误。

How can I check the error where my python script is breaking up, as the map reduce logs just show me the error in the job as shown above.我如何检查 python 脚本中断的错误,因为 map reduce 日志只显示作业中的错误,如上所示。

Try executing your query using UDF as尝试使用 UDF 作为执行查询

hive --hiveconf hive.root.logger=DRFA --hiveconf hive.log.dir=./logs --hiveconf hive.log.level=DEBUG -e "query"

And check log file created in logs folder.并检查在日志文件夹中创建的日志文件。 It will be a detailed log.这将是一个详细的日志。 Make sure that logs folder exist before executing the command.在执行命令之前确保日志文件夹存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM