1、Hive创建udf函数
DROP FUNCTION IF EXISTS default.rsa_encoder;
CREATE function default.rsa_encoder as 'com.howe.hive.udf.encoder.RsaEncoder' using jar 'hdfs://hacluster/user/hive/udf/MyUdf.jar';
2、Impala创建udf函数
CREATE function rsa_decoder_impala location 'hdfs://hacluster/user/hive/udf/MyUdf.jar' symbol='com.howe.impala.udf.encoder.RsaDecoder';
3、查看函数
show functions like '%coder';
然而并不能看到自定义函数,可以这样查看
desc function default.rsa_encoder;
4、有时候在hive上创建了函数,在impala找不到
invalidate metadata;
5、在hive中创建的函数,impala使用就报错