Error :
Failed with exception java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
reason :
在设置IO类型时采用了错误的数据类型
fieldNames.add("activityName");//9 fieldOIs.add(PrimitiveObjectInspectorFactory.javaStringObjectInspector); previous :
fieldOIs.add(PrimitiveObjectInspectorFactory.javaIntObjectInspector);