關於Map/Reduce part. 2

169 views
Skip to first unread message

T

unread,
Dec 3, 2011, 1:11:42 AM12/3/11
to nthu-201...@googlegroups.com
請問 MR作業 part. 2,意思是直接用java寫一個照"出現次數"排序map/reduce後的結果的程式嗎?

謝謝

T

unread,
Dec 3, 2011, 2:20:53 AM12/3/11
to nthu-201...@googlegroups.com
另外也想問一下part.1的mapper部份,except " "  是指?

周宗毅

unread,
Dec 4, 2011, 12:14:02 AM12/4/11
to nthu-201...@googlegroups.com
Hi , 

1. 請問 MR作業 part. 2,意思是直接用java寫一個照"出現次數"排序map/reduce後的結果的程式嗎?

這一題應該是要求你  "using the mapreduce programming model. "

而非在做完map/reduce之後再去排序

2. except " " 

這個就是指說請忽略空白character 

楊惠敏

unread,
Dec 10, 2011, 5:42:10 AM12/10/11
to nthu-201...@googlegroups.com
藉標題詢問一下~

請問 map/reduce part2 的部份
如果 output 出來的每個 file 內部都是 sort 好的,但是 file 之間不連續,如下面的例子:

part-r-00000
a    20
e    15
c     9

part-r-00001
t      12
i      10
s      7

請問這樣有符合要求嗎?

周宗毅

unread,
Dec 10, 2011, 6:59:23 AM12/10/11
to nthu-201...@googlegroups.com
Hi ,

你可以嘗試看將output的檔案變成只有一個~

並嘗試看看該結果:D

我想這是符合格式的~

楊惠敏

unread,
Dec 10, 2011, 8:18:03 AM12/10/11
to nthu-201...@googlegroups.com
嗯嗯~ 我試過了,結果是對的
謝謝助教:)

Chien

unread,
Dec 12, 2011, 8:27:40 AM12/12/11
to nthu-201...@googlegroups.com
想請問一下助教,此排序有限定輸出格式嗎?
還是只要有達到數字由小排到大,或是由大排到小就可以了呢?

謝謝:)

Yafang

unread,
Dec 12, 2011, 8:30:46 AM12/12/11
to nthu-201...@googlegroups.com
沒有限定,

只要你有在報告或是readme中註明是小到大或是大到小就可以了

謝謝

周宗毅

unread,
Dec 12, 2011, 8:30:56 AM12/12/11
to nthu-201...@googlegroups.com
Hi , 

並沒有設限~

不過請在readme中註明你使用的方式以及排序的依據:)

謝謝!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages