org.apache.tez.dag.api.Vertex.setLocationHint()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(71)

本文整理了Java中org.apache.tez.dag.api.Vertex.setLocationHint()方法的一些代码示例,展示了Vertex.setLocationHint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vertex.setLocationHint()方法的具体详情如下:
包路径:org.apache.tez.dag.api.Vertex
类名称:Vertex
方法名:setLocationHint

Vertex.setLocationHint介绍

[英]Specify location hints for the tasks of this vertex. Hints must be specified for all tasks as defined by the parallelism
[中]为此顶点的任务指定位置提示。必须为并行性定义的所有任务指定提示

代码示例

代码示例来源:origin: org.apache.tez/tez-mapreduce

.setLocationHint(VertexLocationHint.create(locations))
.setTaskLaunchCmdOpts(taskJavaOpts);

代码示例来源:origin: org.apache.pig/pig

userPayLoadBuilder.setConfigurationBytes(TezUtils.createByteStringFromConf(inputPayLoad));
vertex.setLocationHint(VertexLocationHint.create(inputSplitInfo.getTaskLocationHints()));
vertex.addDataSource(ld.getOperatorKey().toString(),
    DataSourceDescriptor.create(InputDescriptor.create(MRInput.class.getName())

相关文章