Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Hadoop map-reduce モデルを使用する利点を説明できる人はいますか? マップがキーと値のペアを取り、別のキーと値のペアを返すと想定されていることを理解しました。出力ペアは入力とどのように異なるのですか。map の出力は reduce への入力として与えられるため、reduce の期待される出力は何ですか。小さな例が役に立ちます。
出力は依然として Map です。次の文で WordCount の例を想定してみましょう。
to test or not to test.
単語分析に基づいて map() から次の結果が得られます。
to, 1 test, 1 or, 1 not, 1 to, 1 test, 1
reduce を実行すると、次のようになります。
to, 2 test, 2 or, 1 not, 1