[英]How to let each mapper class to read the same one file in hadoop
In my hadoop job, except my input data files, I want each mapper class(the map method) to read a common file which I put in the hdfs. 在我的hadoop作业中,除了我的输入数据文件外,我希望每个mapper类(map方法)读取放入hdfs中的公用文件。 This file will be read into each mapper, and save the content in each mapper.
该文件将被读取到每个映射器中,并将内容保存在每个映射器中。 So how to do it?
那怎么办呢?
Depending on your needs there are different approaches: 根据您的需求,有不同的方法:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.