1.现象
hive执行
create function OFFLINEUDF as 'com.tcl.OFFLINEUDF' using jar 'hdfs://nameservice1/hive_UDF/udf-offline-1.0-SNAPSHOT.jar';
报警
FAILED: Class com.tcl.OFFLINEUDF not found
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask
2.解决
将udf-offline-1.0-SNAPSHOT.jar的权限由
-rw-r–r-- 改为-rwxrwxrwx后执行成功
3.原因
创建的函数需要执行对应的jar包,必须要有执行的权限