2012-11-14 2 views

답변

1
One question - does reduce wait until all map operations are finished or does can it start once some results are available? 

Ans By의 :In a MapReduce job reducers do not start executing the reduce method until the all Map jobs have completed. Reducers start copying intermediate key-value pairs from the mappers as soon as they are available.That's why we are able to see in the Job-tracker that reduce show few % when some maps are still running ..

1

하스켈은 내장형으로 map and reduce (fold라고 부름) 명령을 실행하고 그 실행 순서는 정의되지 않습니다 (전체를 평가하지 않는 한 무한한 목록에서도 작동 할 수 있습니다). 그래서 어느쪽으로 든 할 수 있습니다.

구글이 어떻게했는지를 묻는다면, 나는 잘 모르겠다.하지만 그들은 아마 최대 값까지 맵핑하고있는리스트를 소비하도록 설정했을 것이다. 이미 처리 된 값을 메모리에 보관해야합니다.

관련 문제