3

I'm trying to use Apache Drill in embedded mode (drill-embedded) however when it starts it shows an error:

Error: Failure in connecting to Drill: org.apache.drill.exec.pc.RpcException: CONNECTION : io.netty.channel.ConnectTimeoutException: connection timed out: /192.168.1.11:31010 (state=,code=0)

If I disconnect the corporate VPN it will startup just fine. Connections to the IP of the network adapter are being blocked by the VPN software, which is expected, so I need it to connect to the loopback (127.0.0.1) instead. How can I configure this? I have several other server/services running fine that use the loopback, but for whatever reason Drill insists on using the IP of the adapter.

I've tried various settings in drill-override.conf but can't seem to find the right one that would cause it to connect to the loopback.

Any ideas?

techraf
  • 64,883
  • 27
  • 193
  • 198
Rob L
  • 31
  • 3

2 Answers2

1

A similar question was asked on the mailing list, and the following answer by Aditya seems to have fixed the problem for the user:

Could you please check your "/etc/hosts" file for a possible mis-configuration of "localhost" and ensure that all localhost names are set to default.

adeneche
  • 182
  • 4
1

I had the same problem and was able to work around it by setting the environment variable DRILL_HOST_NAME=localhost. I think you can also set this in conf/drill-env.sh, there's a line there that exports that environment variable and you can uncomment it and set a value.

J. Levine
  • 58
  • 1
  • 3