异常信息:
NestedThrowables:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT' at line 1
异常解决:
因为我用的hive原数据库mysql版本是5.7但是用的驱动版本是5.1.8的,应将5.1.8的驱动换为更高的版本 ,需在5.1.22 版本以上即可
参考文档:https://blog.youkuaiyun.com/wangyang1354/article/details/60135602