hive sequencefile导入文件遇到FAILED: SemanticException Unable to load data to destination table. Error: The file that you are trying to load does not match the file format of the destination table.错误

原因

这是因为SequenceFile的表不能使用load来加载数据,只能导入sequence类型的数据

解决办法

曲线救国

  • 先创建一个临时表(save as textfile),将数据导入进去,
  • 然后再导入这个表里
insert into table test_sq select * from test_text;
参考

相关文章:

  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2021-11-25
猜你喜欢
  • 2021-08-18
  • 2022-12-23
  • 2021-04-12
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案