mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Move numReferenceOfSparkContext.incrementAndGet() to the end of open() method
This commit is contained in:
parent
4d2533f0e0
commit
b091b7efed
1 changed files with 2 additions and 2 deletions
|
|
@ -488,8 +488,6 @@ public class SparkInterpreter extends Interpreter {
|
|||
intp.setContextClassLoader();
|
||||
intp.initializeSynchronous();
|
||||
|
||||
numReferenceOfSparkContext.incrementAndGet();
|
||||
|
||||
synchronized (sharedInterpreterLock) {
|
||||
if (classOutputDir == null) {
|
||||
classOutputDir = settings.outputDirs().getSingleOutput().get();
|
||||
|
|
@ -614,6 +612,8 @@ public class SparkInterpreter extends Interpreter {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
numReferenceOfSparkContext.incrementAndGet();
|
||||
}
|
||||
|
||||
private List<File> currentClassPath() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue