1
0

[MINOR] Remove the declaration of thrown RuntimeException (#1305)

This commit is contained in:
lamber-ken
2020-02-05 23:23:20 +08:00
committed by GitHub
parent 425e3e6c78
commit 46842f4e92
8 changed files with 23 additions and 39 deletions

View File

@@ -37,8 +37,7 @@ public class SparkEnvCommand implements CommandMarker {
public static Map<String, String> env = new HashMap<String, String>();
@CliCommand(value = "set", help = "Set spark launcher env to cli")
public void setEnv(@CliOption(key = {"conf"}, help = "Env config to be set") final String confMap)
throws IllegalArgumentException {
public void setEnv(@CliOption(key = {"conf"}, help = "Env config to be set") final String confMap) {
String[] map = confMap.split("=");
if (map.length != 2) {
throw new IllegalArgumentException("Illegal set parameter, please use like [set --conf SPARK_HOME=/usr/etc/spark]");