虚位以待(AD)
虚位以待(AD)
首页 > 数据库 > MongoDB数据库 > hive删除表时候失败,FordirectMetaStoreDBconnections,wedon'tsupportretriesat

hive删除表时候失败,FordirectMetaStoreDBconnections,wedon'tsupportretriesat
类别:MongoDB数据库   作者:码皇   来源:<a href="http://blog.csdn.net/heimerdinger_feng" target="_blank" rel="no   点击:

hive删除表时候失败,FordirectMetaStoreDBconnections,wedon& 39;tsupportretriesattheclientlevel。hive删除表的时候提示失败,之后连其他的操作也执行不了了(没有执行删除表命令之前很多都可以执行),除非你退出再重新进hive。

hive删除表时候失败,FordirectMetaStoreDBconnections,wedon&#39;tsupportretriesattheclientlevel。hive删除表的时候提示失败,之后连其他的操作也执行不了了(没有执行删除表命令之前很多都可以执行),除非你退出再重新进hive;查了很多资料说法不一,但是我把mysql的驱动换了一下就解决了删除失败问题,

hive> show tables;

mytable
Time taken:0.521 seconds,Fetched:1 row(s)

hive>drop table test;
FAILED:ExecutionError,return code1from org.apache.hadoop.hive.ql.exec.DDLTask.MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)

解决办法:

重新下载适合自己mysql版本的mysql-connector-java-commercial驱动,在官网上或者在百度上搜索,一般csdn上会有,登录csdn账号之后才能下载,不然点击下载按钮之后没反应
成功后的现象:

hive> show tables;

mytable
Time taken:0.521 seconds,Fetched:1 row(s)

hive>drop table test;

ok
Time taken:0.249 seconds

相关热词搜索:
上一篇:JDBC
下一篇:Windows下Mongodb安装及配置