Error:map.xml could only be replicated to 0 nodes instead of minReplication (=1)

hackeruncle發表於2016-07-19

1.場景: hive執行一條sql語句,然後map,reduce做完了,寫資料over了
Error:map.xml could only be replicated to 0 nodes instead of minReplication (=1)

2.錯誤:
java.lang.RuntimeException: Error caching map.xml: org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /tmp/hive/root/675fa67b-59c3-4de7-99a9-3f5be9f6685c
/hive_2016-07-19_16-11-06_796_8611429774960723114-1/-mr-10013/f1b1cc9d-19ef-448c-8b9d-3e48129c7fec/map.xml could only be replicated to 0 nodes instead of minReplication (=1).
There are 3 datanode(s) running and no node(s) are excluded in this operation.


3.分析:
1>.檢查叢集服務狀態是否正常
2>.新建個txt檔案,然後put到hdfs系統,再次檢查
3>.磁碟空間不足

 

4.解決方法:
a.檢查各個節點的磁碟是否99%,100%
df -h

b.查詢出大於100M的檔案
find / -type f -size +100000000c -exec du -sh {} \;

c.刪選不要的檔案或者日誌,刪除,降低磁碟使用

rm -f 檔案目錄

5.驗證:
Error:map.xml could only be replicated to 0 nodes instead of minReplication (=1)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30089851/viewspace-2122249/,如需轉載,請註明出處,否則將追究法律責任。

相關文章