在我在hive命令行中执行 add jar /opt/module/hive/data/myudf.jar; create temporary function my_len as "MyStringLength"; 这两条语句后,报了下面的错误
FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.FunctionTask.
MyStringLength has been compiled by a more recent version of the Java Runtime (class file version
55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
阅读报错信息可知重点在this version of the Java Runtime only recognizes class file versions up to 52.0。顾名思义的解决方法是将jar包里面的jdk版本降为8,否则不能在虚拟机配置的java环境中运行。