hive删除表报错:hive.metastore.api.MetaException javax.jdo.JDODataStoreException OPTION SQL_SELECT_LIMIT=

最近在做kylin相关操作时发现不能往hive里面crud,刚开始的时候以为是数据库有问题,各种修改数据库字符集,各种试都不行,hive -hiveconf hive.root.logger=DEBUG,console 看了下日志:

ERROR hive.log: Got exception: org.apache.hadoop.hive.metastore.api.MetaException javax.jdo.JDODataStoreException: 
You have an error in your SQL syntax; 

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

看来是驱动的错误,我的mysql是5.6.26,去官网下载了一个mysql-connector-java-8.0.11.jar的驱动包放在hive的lib下面,并把hive自带的驱动包+.bak,重新启动hive,再去删除表操作就没有问题了



猜你喜欢

转载自blog.csdn.net/qq_36269293/article/details/80415673