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'='\\');
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。