Skip to content

Commit

Permalink
Add sudo to process builder
Browse files Browse the repository at this point in the history
  • Loading branch information
SravanthiAshokKumar authored and hisundar committed Jan 17, 2023
1 parent 0361c06 commit 7b04eb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void invokeCheckpointing() {
shutdown();
}

ProcessBuilder pb = new ProcessBuilder(compactorScriptPath, "--hostname", hostName, "--port",
ProcessBuilder pb = new ProcessBuilder("sudo", compactorScriptPath, "--hostname", hostName, "--port",
port, "--compactorConfig", compactorConfigPath, "--startCheckpointing=true");
pb.redirectOutput(ProcessBuilder.Redirect.PIPE);
pb.redirectError(ProcessBuilder.Redirect.PIPE);
Expand Down

0 comments on commit 7b04eb8

Please sign in to comment.