You can use it to reduce . It consists of two parts map and reduces . 一般情况下,Combiner和Reduce 函数是一样的。 When combining function and reducing function are the same. This is the same code written as a reduce :. Reduce Task只能在所有MapTask完成之后才能启动。None of the reduced tasks can start before all the map tasks are done.
然后模型会收集每个计算结果,并且将它们「reduce 」成个部分。 Then the model collects the results and‘reduces ' them into one report. 在MapReduce中,所有的输出数值一般不会被reduce 在一起。 In MapReduce, all of the output values are not usually reduced together. 然后模型会收集每个计算结果,并且将它们「reduce 」成一个部分。 Then the model collects the results and‘reduces ' them into one report. Reduce 函数,同样由用户编写,接受中间键I和这个键的一组值。The reduce function, also written by the user, accepts an intermediate key I and a set of values for that key. 然后,模型会收集每个计算结果,并将它们“reduce ”成一个部分。 Then the model collects the results and‘reduces ' them into one report. Reduce 任务每次作用于一个键,并将与此键关联的所有值以某种方式组合起来。The Reduce tasks work on one key at a time and combine all the values associated with that key in some way. 用0.95,所有reduce 可以在maps一完成时就立刻启动,开始传输map的输出结果。 With 0.95 all of the reduces can launch immediately and start transferring map outputs as the maps finish. Reduce 函数的概念是,接收一个函数和一个集合,然后组合他们来创建返回值。The idea of reduce is to receive a function and a collection, and return a value created by combining the items. 然后在该列表中的所有样本上运行Reduce 层,并将结果推送回到它们各自的堆栈。 Then I run the Reduce layer on all the examples in that list and push the results back to their respective stacks. Reduce 函数的思想是接收一个函数和一个集合,并返回通过组合这些项创建的值。The idea of reduce is to receive a function and a collection, and return a value created by combining the items. 根据键划分reduce 空间:reducing函数的作用是把大的数值列表转变为一个(或几个)输出数值。 Keys divide the reduce space: A reducing function turns a large list of values into one(or a few) output values. 此外,R通常受到用户限制,因为每个reduce task的输出最终保存在一个单独的输出文件中。 Furthermore, R is often constrained by users because the output of each reduce task ends up in a separate output file. 如果没有memo传递给reduce 的初始调用,iteratee不会被列表中的第一个元素…. If no memo is passed to the initial invocation of reduce , the iteratee is not invoked on the first element of the list. 因此,如果一个TaskTracker已经完成赋予它的3个reduce 任务中的2个,那只有第三个任务会被重新执行。 Thus, if a TaskTracker has already completed two out of three reduce tasks assigned to it, only the third task must be executed elsewhere. 有多个可用于MapReduce的框架,如可自动生成Map和Reduce 程序的Hive。 There are multiple frameworks available for MapReduce, such as Hive, which automatically generates Map and Reduces programs. 如果你以前从来没有用像是map,filter和reduce 这样的函数的话,它们可能看起来比简单的for循环要难理解。 If you have never used functions like map, filter, and reduce before, they might look harder to read than a simple for loop. 除了Map和Reduce 操作之外,它还支持SQL查询,流数据,机器学习和图表数据处理。 In addition to Map and Reduce operations, it supports SQL queries, streaming data, machine learning and graph data processing. 注意:如果没有initialValue参数,reduce 从index为1开始执行回调函数,跳过第一个index。 Note: If initialValue isn't provided, reduce will execute the callback function starting at index 1, skipping the first index. 通过聚合归纳(Reduce ),UTXO可以转化为账户余额,而对账户余额进行拆分则可得到UTXO的结果。 Reduced by aggregation, UTXOs can be converted to account balances, and by splitting the account balance the UTXO result can be obtained. 虽然由简单编写的map和reduce 函数提供的基本功能已足以满足大多数需求,我们发现了一些有用的扩展。 Although the basic functionality provided by simply writing map and reduce functions is sufficient for most needs, we have found a few extensions useful. 没有固定数量的Map和Reduce slots,NodeManager拥有许多动态创建的资源容器。 Instead of having a fixed number of map and reduce slots, the NodeManager has a number of dynamically created resource containers. Master把执行成功的Map和Reduce 任务的计数器值进行累计,当MapReduce操作完成之后,返回给用户代码。 The master aggregates the counter values from successful map and reduce tasks and returns them to the user code when the MapReduce operation is completed.
展示更多例子
结果: 27 ,
时间: 0.0189
English
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt