Apache Drill UI 服务器绑定问题

Apache Drill UI server binding issue

我正在尝试配置 Apache drill。 我已经下载、构建和测试了一些东西,在 Zookeeper 上配置的集群似乎 运行 没问题。 我对钻头启动没问题,除了 Drill 使用的内置 Jetty 服务器之外,其他所有服务器都没有自动绑定到所有 ips。

netstat 的输出:

$>sudo netstat -nlp | grep 8047
tcp6       0      0 :::8047                 :::*                    LISTEN      23041/java 

我想让它从 0.0.0.0 监听。

感谢任何指点。

深入研究一下,我在源代码中看到,drill 使用 Jetty Server class 作为 UI,class 有一个方便的构造函数,它只接受一个端口. http://api.dpml.net/org/mortbay/jetty/6.1.0/org/mortbay/jetty/Server.html

看起来需要使用 .addConnector() 来支持端口和 IP 地址。