Container killed on request. Exit code is 143

背景

只是一條INSERT語句插入一條數據,然後就報錯

報錯如下

Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask

分析

之前寫過這個錯誤,這只是個表象錯誤,具體問題還是需要看日誌分析。Z

正常日誌裏沒有報錯,在這個任務的一個POST日誌文件中發現如下報錯

Container container_e19_1577953713473_0001_01_000003 exited with diagnostics set to Container failed, exitCode=-105. Container killed by the ApplicationMaster.
Container killed on request. Exit code is 143
Container exited with a non-zero exit code 143

因某種原因通過度娘無法找到exitCode=-105的相關,只能找到Exit code is 143的相關問題。大部分都是在說是yarn的container分配的內存不夠,需要進行yarn資源調整。但是詳細的可以看到具體報錯就是內存問題的報錯,跟自己遇到的並不是同一種情況。

還是回過頭來分析語句,因爲是往特定的一個分區插數,且之前出現過分區丟失的情況,於是試一下換個分區插入數據,結果成功了。那麼原因就找到了,原來分區映射存在問題也會導致這種錯誤,漲姿勢了。修復該分區後,問題解決。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章