Removed DevInterpreter from zeppelin-zengine

This commit is contained in:
Jongyoul Lee 2017-01-03 23:51:35 +09:00
parent 08d7c4ef70
commit 28cf7a60d6
2 changed files with 1 additions and 27 deletions

View file

@ -13,6 +13,7 @@
<groupId>org.apache.zeppelin</groupId>
<artifactId>helium-dev</artifactId>
<version>0.7.0-SNAPSHOT</version>
<name>Zeppelin: Helium development interpreter</name>
<dependencies>
<dependency>

View file

@ -74,8 +74,6 @@ import org.apache.zeppelin.display.AngularObjectRegistry;
import org.apache.zeppelin.display.AngularObjectRegistryListener;
import org.apache.zeppelin.helium.ApplicationEventListener;
import org.apache.zeppelin.interpreter.Interpreter.RegisteredInterpreter;
import org.apache.zeppelin.interpreter.dev.DevInterpreter;
import org.apache.zeppelin.interpreter.dev.ZeppelinDevServer;
import org.apache.zeppelin.interpreter.remote.RemoteAngularObjectRegistry;
import org.apache.zeppelin.interpreter.remote.RemoteInterpreter;
import org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcessListener;
@ -1348,11 +1346,6 @@ public class InterpreterFactory implements InterpreterGroupFactory {
}
}
// dev interpreter
if (DevInterpreter.isInterpreterName(replName)) {
return getDevInterpreter();
}
return null;
}
@ -1429,24 +1422,4 @@ public class InterpreterFactory implements InterpreterGroupFactory {
}
return editor;
}
private Interpreter getDevInterpreter() {
if (devInterpreter == null) {
InterpreterOption option = new InterpreterOption();
option.setRemote(true);
InterpreterGroup interpreterGroup = createInterpreterGroup("dev", option);
devInterpreter = connectToRemoteRepl("dev", DevInterpreter.class.getName(), "localhost",
ZeppelinDevServer.DEFAULT_TEST_INTERPRETER_PORT, new Properties(), "dev", "anonymous",
false);
LinkedList<Interpreter> intpList = new LinkedList<>();
intpList.add(devInterpreter);
interpreterGroup.put("dev", intpList);
devInterpreter.setInterpreterGroup(interpreterGroup);
}
return devInterpreter;
}
}