Skip to content

Commit

Permalink
move exec class change to another pr
Browse files Browse the repository at this point in the history
  • Loading branch information
voddle committed Aug 30, 2023
1 parent 56e6f61 commit 4cb7ac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,10 @@ private Map<String, Object> getUfsConf(String ufsUri, RunTaskContext runTaskCont
@Override
public String runTask(StressBenchConfig config, ArrayList<String> args,
RunTaskContext runTaskContext) throws Exception {
List<String> command = new ArrayList<>(5 + config.getArgs().size());
List<String> command = new ArrayList<>(3 + config.getArgs().size());
command.add(Configuration.get(PropertyKey.HOME) + "/bin/alluxio");
command.add("exec");
command.add("class");
command.add("runClass");
command.add(config.getClassName());
command.add("--");

// the cluster will run distributed tasks
command.add(BaseParameters.DISTRIBUTED_FLAG);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,8 @@ protected String runSingleTask(String[] args) throws Exception {
// Spawn a new process
List<String> command = new ArrayList<>();
command.add(conf.get(PropertyKey.HOME) + "/bin/alluxio");
command.add("exec");
command.add("class");
command.add("runClass");
command.add(className);
command.add("--");
command.addAll(Arrays.asList(args));
command.add(BaseParameters.IN_PROCESS_FLAG);
command.addAll(mBaseParameters.mJavaOpts.stream().map(String::trim)
Expand Down

0 comments on commit 4cb7ac9

Please sign in to comment.