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.錯誤


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;
參考


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM