diff --git a/scalding/src/main/java/org/apache/zeppelin/scalding/ScaldingInterpreter.java b/scalding/src/main/java/org/apache/zeppelin/scalding/ScaldingInterpreter.java index 282cd2e734f..db58268a6fe 100644 --- a/scalding/src/main/java/org/apache/zeppelin/scalding/ScaldingInterpreter.java +++ b/scalding/src/main/java/org/apache/zeppelin/scalding/ScaldingInterpreter.java @@ -57,18 +57,6 @@ public class ScaldingInterpreter extends Interpreter { public static final List NO_COMPLETION = Collections.unmodifiableList(new ArrayList<>()); - static { - Interpreter.register( - "scalding", - "scalding", - ScaldingInterpreter.class.getName(), - new InterpreterPropertyBuilder() - .add(ARGS_STRING, ARGS_STRING_DEFAULT, "Arguments for scalding REPL") - .add(MAX_OPEN_INSTANCES, MAX_OPEN_INSTANCES_DEFAULT, - "Maximum number of open interpreter instances") - .build()); - } - static int numOpenInstances = 0; private ScaldingILoop interpreter; private ByteArrayOutputStream out; diff --git a/scalding/src/main/resources/interpreter-setting.json b/scalding/src/main/resources/interpreter-setting.json new file mode 100644 index 00000000000..a2efa4d1ca3 --- /dev/null +++ b/scalding/src/main/resources/interpreter-setting.json @@ -0,0 +1,19 @@ +[ + { + "group": "scalding", + "name": "scalding", + "className": "org.apache.zeppelin.scalding.ScaldingInterpreter", + "properties": { + "args.string": { + "envName": null, + "defaultValue": "--local --repl", + "description": "Arguments for scalding REPL" + }, + "max.open.instances": { + "envName": null, + "defaultValue": "50", + "description": "Maximum number of open interpreter instances" + } + } + } +]