Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Unable to connect to Zeppelin server

New Contributor

Hi, I've tried to connect hadoop, spark, and Zeppelin, and I confirmed that hadoop and spark server is working well. But I can't connect to Zeppelin server. This is a log of zeppelin:


WARN [2023-03-20 17:43:32,397] ({main}[<init>]:85) - Failed to load XML configuration, proceeding with a default,for a stacktrace activate the debug log
INFO [2023-03-20 17:43:32,421] ({main}[create]:135) - Server Host:
INFO [2023-03-20 17:43:32,421] ({main}[create]:139) - Server Port: 8080
INFO [2023-03-20 17:43:32,421] ({main}[create]:141) - Context Path: /
INFO [2023-03-20 17:43:32,424] ({main}[create]:142) - Zeppelin Version: 0.10.1
INFO [2023-03-20 17:43:32,448] ({main}[initialized]:169) - Logging initialized @1905ms to org.eclipse.jetty.util.log.Slf4jLog
WARN [2023-03-20 17:43:32,997] ({main}[getConfigFSDir]:653) - zeppelin.config.fs.dir is not specified, fall back to local conf directory zeppelin.conf.dir
WARN [2023-03-20 17:43:33,005] ({main}[getConfigFSDir]:653) - zeppelin.config.fs.dir is not specified, fall back to local conf directory zeppelin.conf.dir
WARN [2023-03-20 17:43:33,005] ({main}[getConfigFSDir]:653) - zeppelin.config.fs.dir is not specified, fall back to local conf directory zeppelin.conf.dir
WARN [2023-03-20 17:43:33,067] ({main}[loadCredentials]:88) - Credential file /home/nahyeon/apps/zeppelin/conf/credentials.json is not existed
INFO [2023-03-20 17:43:33,218] ({ImmediateThread-1679301812982}[loadNotebookRepo]:78) - Loading NotebookRepo Plugin: org.apache.zeppelin.notebook.repo.GitNotebookRepo
INFO [2023-03-20 17:43:33,534] ({ImmediateThread-1679301812982}[setNotebookDirectory]:69) - Using notebookDir: /home/nahyeon/apps/zeppelin/notebook
INFO [2023-03-20 17:43:33,718] ({main}[setupWebAppContext]:577) - warPath is: /home/nahyeon/apps/zeppelin/zeppelin-web-0.10.1.war
INFO [2023-03-20 17:43:33,719] ({main}[setupWebAppContext]:590) - ZeppelinServer Webapp path: /home/nahyeon/apps/zeppelin/webapps
INFO [2023-03-20 17:43:33,802] ({main}[setupWebAppContext]:577) - warPath is: /home/nahyeon/apps/zeppelin/zeppelin-web-angular-0.10.1.war
INFO [2023-03-20 17:43:33,803] ({main}[setupWebAppContext]:590) - ZeppelinServer Webapp path: /home/nahyeon/apps/zeppelin/webapps/next
INFO [2023-03-20 17:43:33,820] ({ImmediateThread-1679301812982}[init]:76) - Opening a git repo at '/home/nahyeon/apps/zeppelin/notebook'
INFO [2023-03-20 17:43:33,911] ({main}[<init>]:154) - NotebookServer instantiated: org.apache.zeppelin.socket.NotebookServer@1500b2f3

INFO [2023-03-20 17:43:33,911] ({main}[setNotebook]:165) - Injected NotebookProvider
INFO [2023-03-20 17:43:33,911] ({main}[setServiceLocator]:159) - Injected ServiceLocator: ServiceLocatorImpl(shared-locator,0,787738361)
INFO [2023-03-20 17:43:33,912] ({main}[setNotebookService]:172) - Injected NotebookServiceProvider
INFO [2023-03-20 17:43:33,912] ({main}[setAuthorizationServiceProvider]:179) - Injected NotebookAuthorizationServiceProvider
INFO [2023-03-20 17:43:33,912] ({main}[setConnectionManagerProvider]:185) - Injected ConnectionManagerProvider
INFO [2023-03-20 17:43:33,914] ({main}[setupClusterManagerServer]:467) - Cluster mode is disabled
INFO [2023-03-20 17:43:33,914] ({main}[main]:251) - Starting zeppelin server
INFO [2023-03-20 17:43:33,917] ({main}[doStart]:360) - jetty-9.4.31.v20200723; built: 2020-07-23T17:57:36.812Z; git: 450ba27947e13e66baa8cd1ce7e85a4461cacc1d; jvm 1.8.0_362-8u362-ga-0ubuntu1~22.04-b09
INFO [2023-03-20 17:43:34,063] ({main}[visitServlet]:276) - NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
INFO [2023-03-20 17:43:34,075] ({main}[doStart]:334) - DefaultSessionIdManager workerName=node0
INFO [2023-03-20 17:43:34,075] ({main}[doStart]:339) - No SessionScavenger set, using defaults
INFO [2023-03-20 17:43:34,076] ({main}[startScavenging]:140) - node0 Scavenging every 600000ms
INFO [2023-03-20 17:43:34,089] ({main}[log]:2303) - Initializing Shiro environment
INFO [2023-03-20 17:43:34,089] ({main}[initEnvironment]:133) - Starting Shiro environment initialization.
INFO [2023-03-20 17:43:34,422] ({main}[initEnvironment]:147) - Shiro environment initialized in 333 ms.
INFO [2023-03-20 17:43:37,854] ({main}[doStart]:860) - Started o.e.j.w.WebAppContext@563f38c4{zeppelin-web,/,jar:file:///home/nahyeon/apps/zeppelin-0.10.1-bin-all/zeppelin-web-0.10.1.war!/,AVAILABLE}{/home/nahyeon/apps/zeppelin/zeppelin-web-0.10.1.war}
INFO [2023-03-20 17:43:37,897] ({main}[visitServlet]:276) - NO JSP Support for /next, did not find org.eclipse.jetty.jsp.JettyJspServlet
INFO [2023-03-20 17:43:37,902] ({main}[log]:2303) - Initializing Shiro environment
INFO [2023-03-20 17:43:37,902] ({main}[initEnvironment]:133) - Starting Shiro environment initialization.

INFO [2023-03-20 17:43:37,921] ({main}[initEnvironment]:147) - Shiro environment initialized in 19 ms.
INFO [2023-03-20 17:43:38,604] ({main}[doStart]:860) - Started o.e.j.w.WebAppContext@53045c6c{zeppelin-web-angular,/next,jar:file:///home/nahyeon/apps/zeppelin-0.10.1-bin-all/zeppelin-web-angular-0.10.1.war!/,AVAILABLE}{/home/nahyeon/apps/zeppelin/zeppelin-web-angular-0.10.1.war}
ERROR [2023-03-20 17:43:38,633] ({main}[main]:262) - Error while running jettyServer Failed to bind to /
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(
at org.eclipse.jetty.server.ServerConnector.doStart(
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
at org.eclipse.jetty.server.Server.doStart(
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
at org.apache.zeppelin.server.ZeppelinServer.main(
Caused by: Address already in use
at Method)
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(
... 7 more






And this is the code I changed in zeppelin-site.xml.template(in default, it didn't have zeppelin-site.xml)


<description>Server binding address</description>

<description>Server port.</description>



And this is the code I inserted in, no


export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export MASTER=spark://localhost:7077
export ZEPPELIN_MEM="-Xms1g -Xmx8g -XX:MaxPermSize=1g"
export ZEPPELIN_INTP_MEM="-Xms1g -Xmx8g -XX:MaxPermSize=1g"
export SPARK_HOME=/home/nahyeon/apps/spark
export HADOOP_CONF_DIR=/home/nahyeon/hdoop/hadoop-3.3.4/etc/hadoop
export PYSPARK_PYTHON=python3
export PYTHONPATH=python3
export ZEPPELIN_PORT=9999




**paths of ~/.bashrc are:


export ZEPPELIN_HOME=/home/nahyeon/apps/zeppelin



It seems like although I chose the port number which is different from spark's default port number(8080), it doesn't apply. And maybe it's because it couldn't find XML configuration, according to the first line of the log above. But I'm not sure I understood well, and I have no idea how to fix it. Could anybody help me?


Community Manager

@annakim Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our Zeppelin experts @Scharan and @old  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.


Diana Torres,
Community Moderator

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.