英文:
how to set dummy variable as path in multipleinput in map-reduce
问题
我已经使用`scan`将HBase表数据传递给了Mapper。是否有办法在`MultipleInput()`中将虚拟路径或变量设置为路径参数?
List<Scan> scans = new ArrayList();
scans.add(data);
TableMapReduceUtils.initTableMapperJob(scans, Mapper.class,
ImmutalbeWriteable.class, ImmutalbeWriteable.class, job);
MultipleInputs.addInputPath(job, new Path("DUMMY"),
SequenceFileInputFormat.class, Mapper.class)
> 当我像这样在路径中传递`DUMMY`变量时,我遇到了错误:此路径不存在。
英文:
I have passed hbase table data using scan
to the mapper. Is there any way to set Dummy path or variable as path argument in MultipleInput()
List<Scan> scans = new ArrayList();
scans.add(data);
TableMapReduceUtils.initTableMapperJob(scans, Mapper.class,
ImmutalbeWriteable.class, ImmutalbeWriteable.class, job);
MultipleInputs.addInputPath(job, new Path("DUMMY"),
SequenceFileInputFormat.class, Mapper.class)
> I'm getting error: This path doesn't exits, while passing DUMMY
> variable in path like this.
答案1
得分: 0
MultipleInputs.addInputPath(job, new Path("DUMMY"),
MultiTableInputFormat.class, Mapper.class)
英文:
MultipleInputs.addInputPath(job, new Path("DUMMY"),
MultiTableInputFormat.class, Mapper.class)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论