hive> drop table you_20161114;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:One or more instances could not be retrieved)
报这类似的错误的时候
1:首先把mysql jar替换成 mysql-connector-java-5.1.32-bin.jar
然后重启hive 就可
2:若第一步不好使,则修改mysql的编码
1)首先停止mysql服务 service mysqld stop
2) vim /etc/my.cnf
添加
character_set_server=utf8
init_connect='SET NAMES utf8'
重启mysql hive 即可