Support Questions

Find answers, ask questions, and share your expertise

Configuring Zeppelin Spark Interpreters


I installed zeppelin manually on my node(not sandbox) but after following through the instructions on configuring the spark notebook I notice that when I run "sc.version" it throws me an error(below):

sc.version Connection refused at Method) at at at at at at at org.apache.zeppelin.interpreter.remote.ClientFactory.create( at org.apache.zeppelin.interpreter.remote.ClientFactory.create( at org.apache.commons.pool2.BasePooledObjectFactory.makeObject( at org.apache.commons.pool2.impl.GenericObjectPool.create( at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject( at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject( at org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess.getClient( at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType( at org.apache.zeppelin.interpreter.LazyOpenInterpreter.getFormType( at org.apache.zeppelin.notebook.Paragraph.jobRun( at at org.apache.zeppelin.scheduler.RemoteScheduler$ at java.util.concurrent.Executors$ at at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201( at java.util.concurrent.ScheduledThreadPoolExecutor$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at


Rising Star

@Koffi Did you configure the interpreter correctly?

refer to this link for more details


@Yogeshprabhu thanks very much for reaching back to me, I redid the steps listed in the link above and still experiencing the same errors.I attached photos of my configs. Thanks alot


Rising Star

Can you also post a screenshot of your yarn interpreter settings on your zeppelin ?


@Yogeshprabhu I attached spark-yarn-client interpreter settings. Thanks


Try restarting spark interpreter within Zeppelin, if that doesn't work restart zeppelin. restart can do the Zeppelin restart.


@vshukla restarted the zeppelin interpreter and still geting the same error. Thanks

Super Guru

check out your local mac firewall settings, make sure nothing else is running on the same ports. make sure nothing requires root access. also restarting the server will sometimes do the trick.


@Timothy Spann nothing is conflicting with firewall settings and there are no services running on port 9995 except zeppelin.Since server in use I'll restart at down-time

Super Guru

is spark running in the cluster? is it on the default port.

can you access Spark? can you get to the spark history UI


@Timothy Spann Yes spark is running in the cluster and on its default port(never changed the default port).I attached the configuration screen for spark interpreter.I can also access spark from the commandline and also from the UI those work perfectly.Thanks!


Super Guru

local master is not using YARN version of Spark. it's running a local version. Is that running?

is the green connected light on in the right upper corner?


@Timothy Spann should local master be set to "yarn-client" like it was set in "spark-yarn-interpreter"? The cluster is running spark 1.6 and works perfectly from the command line and yes the green connected light is on on the upper right corner.

Super Guru

yes, if you use the Zeppelin now installed with Spark this should be resolved


Please try running it in yarn-cluster mode

New Contributor

I have the same problem and have tried all suggestions written above and still get the error message. Will appreciate your suggestions. @Koffi @Timothy Spann @Yogeshprabhu

Super Guru

are you using out of the box zeppelin installed through ambari, version 0.60?

how much RAM do you have?

what version of HDP? ambari? jdk?

does your cluster have spark?

any logs?

Cloudera Employee

This connection error usually means that the interpreter has been failed for some reason.

1. First of all check the log of the interpreter in the logs directory.

2. As you use yarn-client I guess spark has not been configured properly to use spark. Check if you have the right yarn-site.xml and core-site.xml in your $SPARK_CONF_DIR. You should also check if SPARK_HOME and SPARK_CONF_DIR set in your

3. Usually the spark-submit parameters are visible from the interpreter log, you can also check the log and try to submit an example application from the command line with the same parameters.

4. Sometime the spark-submit works well but the yarn application master is failed for some reason, so you can also check if you have any application on your spark web ui.

New Contributor


I had similar stack trace issue, As per suggestion, I checked, I Noticed SPARK_HOME is commented. I corrected it still we had issue with same error. It would be appreciated if you can provide any more details to solve it. We are using HDP- with Ambari 2.5


May I know the fix for this error?

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.