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;