You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2020/06/17 06:04:22 UTC
[zeppelin] branch master updated: [hotfix] unable to start zeppelin
in intellij due to ClasssNotFound
This is an automated email from the ASF dual-hosted git repository.
zjffdu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push:
new e4d9930 [hotfix] unable to start zeppelin in intellij due to ClasssNotFound
e4d9930 is described below
commit e4d9930d6a8bc64ef266ecba079b7900a52d84c8
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Wed Jun 17 14:04:18 2020 +0800
[hotfix] unable to start zeppelin in intellij due to ClasssNotFound
---
.../src/main/java/org/apache/zeppelin/server/ZeppelinServer.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java b/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java
index d41ebb1..41f3645 100644
--- a/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java
+++ b/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java
@@ -35,7 +35,6 @@ import javax.servlet.DispatcherType;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.apache.commons.lang3.StringUtils;
-import org.apache.directory.api.util.Strings;
import org.apache.shiro.web.env.EnvironmentLoaderListener;
import org.apache.shiro.web.servlet.ShiroFilter;
import org.apache.zeppelin.cluster.ClusterManagerServer;
@@ -350,14 +349,14 @@ public class ZeppelinServer extends ResourceConfig {
private static void runNoteOnStart(ZeppelinConfiguration conf) throws IOException, InterruptedException {
String noteIdToRun = conf.getNotebookRunId();
- if (!Strings.isEmpty(noteIdToRun)) {
+ if (!StringUtils.isEmpty(noteIdToRun)) {
LOG.info("Running note {} on start", noteIdToRun);
NotebookService notebookService = (NotebookService) ServiceLocatorUtilities.getService(
sharedServiceLocator, NotebookService.class.getName());
ServiceContext serviceContext;
String base64EncodedJsonSerializedServiceContext = conf.getNotebookRunServiceContext();
- if (Strings.isEmpty(base64EncodedJsonSerializedServiceContext)) {
+ if (StringUtils.isEmpty(base64EncodedJsonSerializedServiceContext)) {
LOG.info("No service context provided. use ANONYMOUS");
serviceContext = new ServiceContext(AuthenticationInfo.ANONYMOUS, new HashSet<String>() {});
} else {