"맵리듀스 프로그래밍 모델"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
 
27번째 줄: 27번째 줄:
*[[reduce]]
*[[reduce]]


==참고 자료==
==참고==
*http://en.wikipedia.org/wiki/MapReduce
*http://en.wikipedia.org/wiki/MapReduce


[[분류: 하둡]]
[[분류: 하둡]]

2017년 7월 14일 (금) 01:52 기준 최신판

1 개요[ | ]

맵리듀스 프로그래밍 모델
맵리듀스 논리적 뷰
  • 함수형 프로그래밍
  • Map(키, 값) → list(중간키, 중간값)
  • Reduce(중간키, list (중간값)) → list(결과키, 결과값)

 

2 예시[ | ]

function map(String name, String document):
  for each word w in document:
    emit (w, 1)
 
function reduce(String word, Iterator partialCounts):
  sum = 0
  for each pc in partialCounts:
    sum += ParseInt(pc)
  emit (word, sum)

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}