dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

执行 Hive UDF 报错

Open lingxingzhang opened this issue 6 years ago • 5 comments

这个DS打印的日志 我在hive客户端测试 没有问题 add jar hdfs://172.16.10.153:8020/dolphinscheduler/zuhuytest/udfs/hiveudf/hiveudf-2.0-SNAPSHOT.jar create temporary function HelloUDF as 'com.iwellmass.udf.HelloUDF' insert overwrite directory "/var/hivesql/HelloUDF" select HelloUDF(zhlx) as zhlxs from graph.z_gl_account

但是我用DS提交的话 会报错! image

lingxingzhang avatar Aug 10 '20 10:08 lingxingzhang

Which version?

yangyichao-mango avatar Aug 10 '20 12:08 yangyichao-mango

@yangyichao-mango 您好 DS版本1.3.1 CDH版本6.0.1 hive更换了执行引擎为Tez

lingxingzhang avatar Aug 14 '20 08:08 lingxingzhang

@yangyichao-mango 您好,您有空帮我看一下问题呢 谢谢您

lingxingzhang avatar Aug 17 '20 03:08 lingxingzhang

@yangyichao-mango 您好,您有空帮我看一下问题呢 谢谢您

Sorry, I am not familiar with Tez. Anyone else who can resolve this?

yangyichao-mango avatar Aug 17 '20 13:08 yangyichao-mango

@lingxingzhang So sorry for reply late,When use tez,if only execute insert overwrite directory '/tmp/udf_test' select hello(sname) from test.student it will be successful.

But use udf and execute insert overwrite directory '/tmp/udf_test' select hello(sname) from test.student weill be failure.

Sugeest to change execute engine to mr

I changed the execute engine to mr,it will be successful.Suggest you do it.

lgcareer avatar Oct 14 '20 08:10 lgcareer