Apache Zeppelin - 已断开连接状态

时间:2015-07-01 04:13:36

标签: apache-zeppelin

我已成功在ec2群集上安装并启动了Zeppelin,其中包含spark 1.3和hadoop 2.4.1 on yarn。(如https://github.com/apache/incubator-zeppelin中所示)

但是,我看到zeppelin以'断开'状态开始(在右上角)。 根据日志,我发现zeppelin端口和websocket端口(zeppeling端口+ 1)都已启动且没有错误。此外,我看到这两个端口都没有被任何其他进程使用 zeppelin进程(pid)在两个端口上运行。 IP表是空白的。

登录

 INFO [2015-06-30 03:20:31,294] ({main} QuartzScheduler.java[initialize]:305) - Scheduler meta-data: Quartz Scheduler (v2.2.1) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

 INFO [2015-06-30 03:20:31,294] ({main} StdSchedulerFactory.java[instantiate]:1339) - Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
 INFO [2015-06-30 03:20:31,294] ({main} StdSchedulerFactory.java[instantiate]:1343) - Quartz scheduler version: 2.2.1
 INFO [2015-06-30 03:20:31,295] ({main} QuartzScheduler.java[start]:575) - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
 INFO [2015-06-30 03:20:31,510] ({main} ServerImpl.java[initDestination]:94) - Setting the server's publish address to be /
 INFO [2015-06-30 03:20:31,625] ({main} StandardDescriptorProcessor.java[visitServlet]:284) - NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
 INFO [2015-06-30 03:20:32,374] ({main} AbstractConnector.java[doStart]:338) - Started SocketConnector@0.0.0.0:8083
 INFO [2015-06-30 03:20:32,374] ({main} ZeppelinServer.java[main]:108) - Started

 INFO [2015-06-30 03:20:30,181] ({main} ZeppelinConfiguration.java[create]:98) - Load configuration from file:/home/ec2-user/incubator-zeppelin/conf/zeppelin-site.xml
 INFO [2015-06-30 03:20:30,336] ({main} NotebookServer.java[creatingwebSocketServerLog]:65) - Create zeppelin websocket on 0.0.0.0:8084
 INFO [2015-06-30 03:20:30,537] ({main} ZeppelinServer.java[main]:106) - Start zeppelin server
 INFO [2015-06-30 03:20:30,539] ({main} Server.java[doStart]:272) - jetty-8.1.14.v20131031

zeppelin-env.sh:

export ZEPPELIN_PORT=8083
export HADOOP_CONF_DIR=/mnt/disk1/hadoop-2.4.1/etc/hadoop
export SPARK_HOME=/mnt/disk2/spark

zeppelin-site.xml 中,我只设置了服务器IP地址和端口,并为websocket端口设置了-1。

当我通过chorme访问websocket端口时,我得到“没有数据收到.. err_empty_reponse”和“无法加载网页,因为服务器没有发送任何数据”错误。

我在安装或配置过程中遗漏了什么?任何帮助表示赞赏。感谢。

2 个答案:

答案 0 :(得分:0)

我有一些使用apache zeppelin与IE或Chrome的经验。只需将您的IP地址添加到具有Internet选项的受信任站点即可。关闭IE或Chrome并重新启动它。然后打开IE或Chrome浏览器,你可以看到apache zeppelin的主页。

答案 1 :(得分:0)

尝试在zeppelin.server.allowed.origins中将属性*设置为conf/zeppelin-site.xml,并检查它是否是一个websocket问题。在列出了您想要允许的来源之后。