Zeppelin断开状态错误

时间:2017-02-24 06:01:38

标签: angularjs apache-spark apache-zeppelin

我正在使用Zeppelin 0.70。我可以从git源构建zeppelin。当我尝试使用下面的命令在该端口8000上启动zeppelin时,它运行良好。

./ zeppelin-daemon start

enter image description here

但是在端口9000上使用grunt serve命令后它无法正常工作,但它启动良好并且显示Web套接字断开连接错误。

[root@sandbox zeppelin-web]# ./grunt serve
Running "serve" task

Running "clean:server" (clean) task
Cleaning .tmp...OK

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "concurrent:server" (concurrent) task

    Running "copy:styles" (copy) task
    Copied 16 files

    Done, without errors.


    Execution Time (2017-02-24 05:51:45 UTC)
    loading tasks  277ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%
    copy:styles     28ms  ▇▇▇▇▇ 9%
    Total 305ms

Running "postcss:dist" (postcss) task
>> 16 processed stylesheets created.

Running "connect:livereload" (connect) task
Started connect web server on http://0.0.0.0:9000

Running "watch" task
Waiting...

enter image description here 我登录了控制台;

XMLHttpRequest cannot load http://localhost:8080/api/security/ticket. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9000' is therefore not allowed access. The response had HTTP status code 404.

我将8080更改为8000。

请告诉我如何解决此问题。

1 个答案:

答案 0 :(得分:0)

我认为grunt已在0.7版本中替换为npm,您是否可以尝试npm run dev命令?

更新:ZEPPELIN-2154下与此相关的问题。为了在您的案例中修复它,您可以删除if statement here中的3行,并在源代码中将其替换为port = 8000;。它可能是临时修复,直到补丁被提交以使其可配置。