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)
When reporting a similar error
1: First replace mysql jar with mysql-connector-java-5.1.32-bin.jar
Then restart hive
2: If the first step is not working, modify the code of mysql
1) First stop the mysql service service mysqld stop
2) vim /etc/my.cnf
Add to
character_set_server=utf8
init_connect='SET NAMES utf8'
Just restart mysql hive