Zeppelin 连接被拒绝

Zeppelin connection refused

Zeppeling 笔记本正在报告 "java.net.ConnectException: Connection refused: connect"。我尝试了一些简单的 python 语句。这是笔记本电脑与 Web 服务器失去连接了吗?我在 SO 上看不到很多关于 Zeppelin 的讨论。很难排除故障。

 INFO [2016-12-12 19:23:37,006] ({pool-1-thread-7} Paragraph.java[jobRun]:252) - run paragraph 20161212-191758_314125131 using null org.apache.zeppelin.interpreter.LazyOpenInterpreter@6bf78ad0
ERROR [2016-12-12 19:23:38,003] ({pool-1-thread-7} Job.java[run]:189) - Job failed
org.apache.zeppelin.interpreter.InterpreterException: org.apache.zeppelin.interpreter.InterpreterException: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused: connect
    at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.init(RemoteInterpreter.java:165)
    at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:328)
    at org.apache.zeppelin.interpreter.LazyOpenInterpreter.getFormType(LazyOpenInterprete

首先,该错误不是网络服务器的连接问题,而是 Spark 连接问题。如果您不打算在那里使用 Spark(并像以前一样使用 Python),您应该在 Zeppelin 中每个段落的开头指定解释器的名称(pythonspark , ETC)。如果您不指定,它将使用您的解释器列表中的默认绑定解释器,默认情况下它是 spark with scala。因此:

1) 如果使用python,应在该段的开头添加%python

2) 如果打算使用 spark 解释器,您的 Zeppelin 版本以及您是否使用 SPARK_HOME 会有所帮助。