1. 程式人生 > >org.apache.hadoop.mapred.FileAlreadyExistsException 解決方案

org.apache.hadoop.mapred.FileAlreadyExistsException 解決方案

在這裡插入圖片描述

Exception in thread “main”
org.apache.hadoop.mapred.FileAlreadyExistsException: Output
directory temp/preparePreferenceMatrix/itemIDIndex already exists

然而這個目錄通過Hadoop的web介面並查詢不到!!

解決方法:(直接remove掉在執行)

hadoop fs -rm -r temp/preparePreferenceMatrix/itemIDIndex
hadoop fs -rm -r temp

大功告成!!