The error is caused by
  private static final boolean USE_CANONICAL_HOSTNAME = true;
in
https://github.com/apache/calcite-avatica/blob/73fac75befaaf3caa3871656d0d0b7adbd91f7cf/core/src/main/java/org/apache/calcite/avatica/remote/AvaticaCommonsHttpClientSpnegoImpl.java#L58

In other words, httpclient is using the "canonical hostname" when sending
the request rather than localhost.
I guess the property should be configurable via connection URL.
I've added -D for now.

CI is OK, and it would be great if someone could create a connection
parameter for configuring the use of "canonical hostname".

Vladimir

Reply via email to