问题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'='\\');

Hive错误

相关文章:

  • 2021-08-18
  • 2021-09-18
  • 2021-10-19
  • 2021-07-03
  • 2022-12-23
  • 2021-09-25
  • 2021-05-15
猜你喜欢
  • 2021-10-08
  • 2021-09-21
  • 2021-11-07
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案