Hadoop MapReduce WordCount示例缺陷?(Hadoop MapReduce WordCount example flaw?)
参考基本的WordCount示例: https : //hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html我知道HDFS按块和地图划分文件任务适用于单个块。 因此,无法保证地图任务分析的块不会包含在下一个块中继续的单词,从而导致错误(一个单词计数两次)。 我知道这是一个例子,并且总是以小文件显示,但在现实场景中不会出现问题?
With reference to the basic WordCount example: https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html I know that HDFS divide files in blocks, and maps tasks works on a single block. So there is no guarantee the block analyzed by a map task would not contain a word continuing in the next block, causing a mistake ( one word counted twice ). I know this is an example, and is always shown with small file, but wouldn't be a problem in real world scenarios?
原文:https://stackoverflow.com/questions/35424651
最满意答案
可能是,根据http://caniuse.com/#feat=css-masks不支持
根据MDN,你可以在Firefox 3.5中使用mask for Firefox:
https://developer.mozilla.org/en/CSS/mask
但是,掩码需要SVG图像作为掩码。 您可以将SVG图像base-64编码到样式表中,也可以使用SVG图像文件。
May be, It is not supported according to http://caniuse.com/#feat=css-masks
According to MDN, you can just use mask for Firefox, as of Firefox 3.5:
https://developer.mozilla.org/en/CSS/mask
However, mask requires an SVG image to act as the mask. You might be able to base-64 encode your SVG image into your stylesheet, or you can use an SVG image file.
相关问答
更多-
可能是,根据http://caniuse.com/#feat=css-masks不支持 根据MDN,你可以在Firefox 3.5中使用mask for Firefox: https://developer.mozilla.org/en/CSS/mask 但是,掩码需要SVG图像作为掩码。 您可以将SVG图像base-64编码到样式表中,也可以使用SVG图像文件。 May be, It is not supported according to http://caniuse.com/#feat=css-ma ...
-
mask: url('../img/arrow-down.svg') no-repeat 100% 100%; 是无效的。 您不能拥有整个SVG文件的掩码,它必须具有指向掩码元素的片段标识符。 最重要的是,Firefox目前不支持除url之外的任何其他参数,因此no-repeat 100% 100%将导致其失败。 对于Firefox,你需要的是这样的: mask: url('../img/arrow-down.svg#maskelement') 其中maskelement将是arrow-down.sv ...
-
目前只有Chrome支持通过CSS设置矩形高度和宽度,因为这是SVG 2的新功能。在所有情况下,您都需要包含宽度和高度作为属性。 两次具有相同的属性名称是无效的,因此您也应该删除冗余类属性。 Only Chrome supports setting rect height and width via CSS currently as that's a new feature of SVG 2. You need to include width and height as attributes in all ...
-
它是由Firefox代码的变化引起的,这个变化不完全正确,然后修复了。 错误932771导致它和bug 1127507被反向移植到Firefox 36修复它。 It was caused by a change in the Firefox code which was not completely correct and which was then fixed. Bug 932771 caused it and bug 1127507 which was backported as far as Fir ...
-
我想你想要这个https://codepen.io/CrUsH20/pen/bopBmZ (分叉) 我改变了盒子的颜色,向上移动,变成白色,然后变成黑色,然后我改变了动作,因为你做了类似擦除的东西。 它从底部移动到顶部,它显示我们有信,然后它隐藏。 因此,我将初始translateY = 0和最终结束设置为-100%,以便移动到顶部并打开该字母。IE浏览器工作,如果你base64编码数据,例如 .calendar .split.pm_mgmt{ background-image: url("data:image/svg+xml;charset=utf8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxIDEnICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSdub25lJz48cG9seWdvbiBwb2ludHM9JzE ...我用这样的对象解决了它,我知道这有一些缺点,但它是唯一有用的东西 I solved it using an object like this, i know there are some disadvantages for this, but it was the only thing that worked
相关文章
更多- Hadoop之MapReduce
- Hadoop2.0 Mapreduce实例WordCount体验
- Ubuntu下Eclipse调试Hadoop的WordCount示例
- Hadoop WordCount进阶
- Hadoop应用:剖解MapReduce
- 使用Hadoop构建MapReduce应用
- Hadoop集群(第6期)_WordCount运行详解
- Hbase基于Mapreduce的编程
- Hadoop 键值对的MapReduce过程剖析
- Hadoop Mapreduce Cookbook
最新问答
更多- 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
- 如何通过引用返回对象?(How is returning an object by reference possible?)
- 矩阵如何存储在内存中?(How are matrices stored in memory?)
- 每个请求的Java新会话?(Java New Session For Each Request?)
- css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
- 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
- xcode语法颜色编码解释?(xcode syntax color coding explained?)
- 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
- 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
- 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
- 西安哪有PLC可控制编程的培训
- 在Entity Framework中选择基类(Select base class in Entity Framework)
- 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
- 电脑二级VF有什么用
- Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
- 金华英语角.
- 手机软件如何制作
- 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
- 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
- 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
- Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
- 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
- python的访问器方法有哪些
- DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
- 在Ruby中对组合进行排序(Sorting a combination in Ruby)
- 网站开发的流程?
- 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
- 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
- 透明度错误IE11(Transparency bug IE11)
- linux的基本操作命令。。。