udf 类型不匹配,从text到intwriteabel
NoMatchingMethodException No matching method for class hivedemon.UDFDemo with (int, int). Possible choices:
代码如下:
public IntWritable evaluate(IntWritable num1, IntWritable num2){
if(num1 == null || num2 == null){
return null;
}
return new IntWritable(num1.get() + num2.get());
}
报错如上。