2014-02-24 40 views
1


我想在Hadoop 2.2上使用mahout 0.9庫執行XML解析的mapreduce作業。 但我發現了以下錯誤:
Mahout錯誤與Hadoop2.2

14/02/24 16:03:02 INFO mapreduce.Job: Task Id : attempt_1393235568433_0004_m_000000_0, Status : FAILED 
Error: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected 
14/02/24 16:03:12 INFO mapreduce.Job: Task Id : attempt_1393235568433_0004_m_000000_1, Status : FAILED 
Error: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected 
14/02/24 16:03:31 INFO mapreduce.Job: Task Id : attempt_1393235568433_0004_m_000000_2, Status : FAILED 
Error: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected 
14/02/24 16:03:53 INFO mapreduce.Job: map 100% reduce 100% 
14/02/24 16:03:53 INFO mapreduce.Job: Job job_1393235568433_0004 failed with state  FAILED due to: Task failed task_1393235568433_0004_m_000000 
Job failed as tasks failed. failedMaps:1 failedReduces:0 

我試圖尋找解決方案,但得到的鏈接http://osdir.com/ml/general/2014-02/msg39414.html,其中指出,Mahout的0.8或0.9不支持Hadoop的2.2。
任何可能的工作?

回答

1

大約一個小時前亨利馬烏已經正式加入支持在主分支的Hadoop 2.x的(見MAHOUT-1329

結帳這裏的代碼https://github.com/apache/mahout和使用編譯:

mvn clean package -Dhadoop2.version=2.2.0 

試試看這樣可行。

+0

thanx ..會嘗試。 –

+0

不要猶豫,馬克回答;) – ksiomelo

+0

我重新編譯的代碼,但得到了同樣的錯誤...... –