FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException

FAILED: Execution Error,
return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask.
MetaException(message:One or more instances could not be made persistent)

解决方法

把mysql中的hive数据删掉重新创建
在mysql中执行以下命令:

drop database hive; 
create database hive; 
alter database hive character set latin1;

重启hive

注意

删除hive数据库后,相当于 hive中已创建的表的元数据,内部表的元数据以及数据都会被删除,此方法慎用

你可能感兴趣的:(FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException)