How to start drillbit locally in distributed mode?

不羁的心 提交于 2019-12-06 07:20:36

The problem was that my /etc/hosts file had this entry

127.0.1.1   mgelbana-machine

This made my hostname resolvable to a loopback address. To resolve this, you can do either of the following

  • Removing this line resolved my problem.
  • Having my hostname resolved to a non-loopback IP address.

Source

private void checkLoopbackAddress(String address) throws DrillbitStartupException, UnknownHostException {
  if (isDistributedMode && InetAddress.getByName(address).isLoopbackAddress()) {
    throw new DrillbitStartupException("Drillbit is disallowed to bind to loopback address in distributed mode.");
  }
}

The reason why Drill refuses to startup while bound to a loopback address, is to differentiate between Drill nodes registered in Zookeeper.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!