首页 \ 问答 \ Hadoop一个Map和多个Reduce(Hadoop one Map and multiple Reduce)

Hadoop一个Map和多个Reduce(Hadoop one Map and multiple Reduce)

我们有一个大型数据集来分析多个归约函数。

所有减少相同的数据集相同的地图功能生成的算法工作。 读取大型数据集的成本太高,每次只能读取一次,并将映射数据传递给多个reduce函数。

我可以使用Hadoop来做到这一点吗? 我搜索了这些例子和intarweb,但是我找不到任何解决方案。


We have a large dataset to analyze with multiple reduce functions.

All reduce algorithm work on the same dataset generated by the same map function. Reading the large dataset costs too much to do it every time, it would be better to read only once and pass the mapped data to multiple reduce functions.

Can I do this with Hadoop? I've searched the examples and the intarweb but I could not find any solutions.


原文:https://stackoverflow.com/questions/2333618
更新时间:2023-07-03 10:07

最新回答

system是一个系统调用;  pause是一个系统操作;  该语句的目的是在程序中调用pause命令;  例如:system("ls"); system("grep")等调用。
system()函数表示引用系统命令行,pause在DOS命令里面是表示暂停,所以在这里也是起到暂停的作用!
当没这个语句或类似语句,你点开生成的.exe文件,运行界面只会闪一下,而有这个语句,就不会了!类似语句还有getchar();在最后加上这种语句,你就可以看到运行结果了
system是C标准库中的一个函数,它可以调用系统的命令。system("pause")就是调用系统的pause命令,起到暂停程序运行的作用。

相关问答

更多
  • system("pause")放在哪里都可以,由自己决定。 system就是调用从程序中调用系统命令(和shell命令)。 system("pause")就是从程序里调用“pause”命令, 而“pause”这个系统命令的功能很简单,就是在命令行上输出一行类似于“Press any key to exit”的字,等待用户按一个键,然后返回。 举例如下: #include #include // 使用system ("pause");必须要加该 头文件 main () { int a=1; printf("% ...
  • 头文件是 #include 功能是:暂停,即让程序定住,直到用户按一个键,在继续完成程序。 觉得我回答的不错就赞个哦
  • system("pause")是暂停的意思 当没这个语句或类似语句,你点开生成的.exe文件,运行界面只会闪一下,而有这个语句,就不会了!类似语句还有getchar();在最后加上这种语句,你就可以看到运行结果了 比如 在 dev c++ 编译器你要看到最后运行的结果,就要加上这一句。。
  • 可以使用getch函数要实现,举例如下: char ch; printf("按A继续。"); /*这里是提示*/ ch = getch(); if('A'== ch) { /*执行你要的操作*/ }
  • 这里调用的函数为system,该函数位于stdlib.h 所以需要加入 #include 该 函数声明为 int system(const char *cmd); 功能为 执行系统命令,命令内容即参数字符串cmd。 比如 system("clear");就可以在windows下,达到清除输出窗口内容的效果。
  • Sleep说的直白一点,意思是“等待”,等待x毫秒后继续运行,没有交互,不需要用户参与。 System函数是属于windows.h库函数的,所以头部一定要声明。它的意思是“中止”,就是程序进程停下来,直到用户按键再继续。
  • 执行system(“pause”);时,可以让程序暂停,并显示“按任意键继续”,按一个任意的键,程序继续运行下去。
  • 闪一下就消失是正常的。因为程序语句一句句地执行,没有什么让它暂停下来,以计算机执行速度之快,当然一闪而过。至于为什么有的要加暂停有的不用加暂停也行,那是因为有的是调试运行,有的是运行按ctrl+F5运行就不会一闪就消失了,这样就不用加system("pause");有的编译器(例如Dev-C++)会在代码最后自动加上system("pause");以防止新手看不到输出结果。不过我还是习惯用cin.get();。
  • system("PAUSE"); 是调用 DOS 命令 PAUSE. 包含头文件 #include ------------ 问二, 你的 编译器安装或配置问题。我的编译器没有问题,即使 没 包含 头文件 stdlib.h 也没问题。 问三, 加头文件: #include #include
  • 可以啊,system(" pause");只是调用系统的暂停命令,并不能退出程序的,所以按任意键后,可以继续执行后续的语句

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)