在hive执行drop table table_name时报下错SemanticException Unable to fetch table movie. For direct MetaStore DB connections, we don't support retries at the client level.
报错原因:
hive是基于mysql的数据库,需要连接mysql,由于mysql版本较高,hive中自带的连接mysql的jar包较低导致不兼容
解决方法:
到https://dev.mysql.com/downloads/file/?id=480090里下载版本相应jar包,下载下来是一个压缩包,解压后把里面的mysql-connector-java-版本号.jar复制到hive下的lib中,然后把原来的mysql-connector-java-版本号.jar删除,重新启动hive