欢迎投稿

今日深度:

Hive错误,

Hive错误,


问题1:

FAILED: Execution Error, return code 1 from 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>alter database hive character set latin1;

错误2:

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException Permission denied: user=root, access=WRITE, inode="/user/hive/warehouse/cm***x.db/tb_*******_day":hadoop:supergroup:drwxr-xr-x

解决方案:

切换到hadoop用户执行,不行再设置权限hadoop dfs -chmod -R 777 /user/hive/warehouse

错误3:

FAILED: ParseException line 28:0 missing EOF at 'WITH' near ''\u0000''

解决方案:

先去掉sql中的

NULL DEFINED AS '\u0000' 

WITH SERDEPROPERTIES ( 

  'escape.delim'='\\') 

执行sql,创建表,再执行修改表

alter table user_event_data set serdeproperties('serialization.null.format' = '\u0000','escape.delim'='\\');


www.htsjk.Com true http://www.htsjk.com/hive/37088.html NewsArticle Hive错误, 问题1: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)  解决...
相关文章
    暂无相关文章
评论暂时关闭