上传jar包到hdfs目录中,hdfs dfs -put /home/user/hive-functions.jar /user/hive/jars/hive-functions.jarcreate function default.unis_check as 'com.fhpt.hive.functions.UniversityCheckUDF' using jar 'hdfs:/user/hive/jars/hive-functions-0.0.1.jar';查看函数:show functions;显示:default.unis_check在使用的时候必须在函数名称前加default才能使用。