我有一個算法的hadoop實現。在第二個MR中未創建文件
我在Eclipse中這樣做: 當我在eclipse中運行時,我的算法工作正常,並創建必要的文件和輸出。
Algorithm
|
|___creates a file0.txt file.
|
|___creates a file1.txt file.
|
|___creates a file3.txt file.
|
|___creates a file4.txt file.
|
|___creates a file5.txt file.
|
|___creates a file6.txt file.
|
|___creates a file7.txt file.
完成工作。 當我嘗試在Hadoop集羣中除了file0.txt以外的所有其他文件都未從hdfs
從reducer階段創建。
是否有人經歷過這個問題。
請幫助。 Source
在問題中添加了鏈接 –
在我認爲是265行中的驅動程序代碼的C45.java中,您正在指定輸出路徑。這對所有地圖縮小作業都是一樣的。如果你想要不同的輸出路徑,你需要使用不同的conf運行不同的作業 – abhinav
我的程序在eclipse中成功執行。但它在羣集中失敗。 –