Druid 0.16 Unable to start multiple coordinators in multi-node/multi-master cluster

The first master starts fine and I can access the console and start tasks etc… If I start a second master I get the following:

  • HTML Error: java.lang.IllegalArgumentException: Invalid URI host: null (authority: druid_v16-d03.maeagle.corp:8082)

Also, if I set druid.host to anything except localhost I get the same error on the first master also.

2019-10-24T10:33:30,474 WARN [qtp507383828-67] org.eclipse.jetty.server.HttpChannel - /druid/v2/sql
java.lang.IllegalArgumentException: Invalid URI host: null (authority: druid_v16-d03.maeagle.corp:8082)
at org.eclipse.jetty.client.HttpClient.checkHost(HttpClient.java:503) ~[jetty-client-9.4.10.v20180503.jar:9.4.10.v20180503]
at org.eclipse.jetty.client.HttpClient.newHttpRequest(HttpClient.java:488) ~[jetty-client-9.4.10.v20180503.jar:9.4.10.v20180503]
at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:446) ~[jetty-client-9.4.10.v20180503.jar:9.4.10.v20180503]
at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:435) ~[jetty-client-9.4.10.v20180503.jar:9.4.10.v20180503]
at org.eclipse.jetty.proxy.ProxyServlet.service(ProxyServlet.java:80) ~[jetty-proxy-9.4.10.v20180503.jar:9.4.10.v20180503]
at org.apache.druid.server.AsyncQueryForwardingServlet.doService(AsyncQueryForwardingServlet.java:286) ~[druid-server-0.16.0-incubating.jar:0.16.0-incubating]
at org.apache.druid.server.AsyncQueryForwardingServlet.service(AsyncQueryForwardingServlet.java:277) ~[druid-server-0.16.0-incubating.jar:0.16.0-incubating]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[javax.servlet-api-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) ~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655) ~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
at org.apache.druid.server.security.PreResponseAuthorizationCheckFilter.doFilter(PreResponseAuthorizationCheckFilter.java:82) ~[druid-server-0.16.0-incubating.jar:0.16.0-incubating]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) ~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
at org.apache.druid.server.security.AllowOptionsResourceFilter.doFilter(AllowOptionsResourceFilter.java:75) ~[druid-server-0.16.0-incubating.jar:0.16.0-incubating]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) ~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]

``

I didn’t have any issues running multi-master in v0.14

Thoughts?

–John

I found the issue… java.lang.URI.getHost() doesn’t like ‘_’ characters in the hostname…

Once I replaced these with a hostname (CNAME without ‘_’) it worked fine and all services started…

–John

Could you try removing the underscore “_” from the hostname ?

Thanks ,

Vaibhav

Cool .
You got it.

Thanks ,

Vaibhav