Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Use executor id as int type in the YARN scheduler #1342

Merged
merged 1 commit into from
Sep 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class HeronExecutorTask implements Task {

@Inject
public HeronExecutorTask(final REEFFileNames fileNames,
@Parameter(HeronExecutorId.class) String heronExecutorId,
@Parameter(HeronExecutorId.class) int heronExecutorId,
@Parameter(Cluster.class) String cluster,
@Parameter(Role.class) String role,
@Parameter(TopologyName.class) String topologyName,
Expand All @@ -86,7 +86,7 @@ public HeronExecutorTask(final REEFFileNames fileNames,
@Parameter(PackedPlan.class) String packedPlan,
@Parameter(ComponentRamMap.class) String componentRamMap,
@Parameter(VerboseLogMode.class) boolean verboseMode) {
this.heronExecutorId = Integer.valueOf(heronExecutorId);
this.heronExecutorId = heronExecutorId;
this.cluster = cluster;
this.role = role;
this.topologyName = topologyName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void setsEnvironmentForExecutor() throws Exception {

private HeronExecutorTask getSpyOnHeronExecutorTask(REEFFileNames mockFiles) {
HeronExecutorTask task = new HeronExecutorTask(mockFiles,
"5",
5,
"cluster",
"role",
"testTopology",
Expand Down