【问题标题】:how to import superset-ui plugins?如何导入 superset-ui 插件?
【发布时间】:2021-06-26 01:57:54
【问题描述】:

我的超集版本是通过docker-compose安装的v1.0.1(按照官网https://superset.apache.org/docs/installation/installing-superset-using-docker-compose的说明操作)

然后我按照以下步骤在 superset-ui repo 中安装了一些插件: https://superset.apache.org/docs/installation/building-custom-viz-plugins 但是我没有使用npm run dev-server来加载插件,因为这样通过http://localhost:9000无法进入超集,不知道为什么,所以我只是跟着这些: enter image description here

然后我运行docker-compose up,在输出中一切看起来都不错,但我就是无法通过浏览器进入超集。

我应该修改 Dockerfile 以运行 npm link ... 吗?怎么样?

【问题讨论】:

    标签: node.js docker docker-compose apache-superset superset


    【解决方案1】:

    我知道这有点晚了,但我遇到了同样的问题,原因是我没有设置端口。使用以下命令:

    docker run -d -p 8080:8088 --name superset apache/superset
    

    然后你可以在localhost:8080打开超集

    【讨论】:

      【解决方案2】:

      您必须为您的项目提供两个端口,一个 8088 和 9000 是第一个端口用于后端,第二个端口用于前端。 然后先运行后端,最后运行前端。 https://superset.apache.org/docs/installation/installing-superset-from-scratch
      https://superset.apache.org/docs/installation/building-custom-viz-plugins

      【讨论】:

      • 前端:npm run dev-server 后端:superset run -p 8088 --with-threads --reload --debugger
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-11
      • 2021-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-08
      • 2013-12-30
      相关资源
      最近更新 更多