mysql异常java.math.BigInteger cannot be cast to java.lang.Long解决:
运行mysql sql语句时报如下错误
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version. Underlying cause: java.sql.SQLException : java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
解决方法:原来项目的jar包版本是5.1.27会报错,换成5.1.46就ok了:mysql-connector-java-5.1.46