mohamedkashifuddin opened a new issue #2415:
URL: https://github.com/apache/drill/issues/2415
**Describe the bug**
While connecting from drillbit style I m able to connect and do all such
query, but if I use zk style it doesn't work. instead it throws error as :
below image

So the only way which I can connect with zk style from my local is to edit
my etc/hosts file and add host IP and address like below
`34.66.137.60 drill-data-poc-m.us-central1-b.c.stoked-jigsaw-327806.internal`
plus I ssh into the one of the nodes and try to login via those nodes I m
able to use the zk style and I m able to login using external IP
as below :

but using the same external IP I m not able to login from my local its not
working.
For testing its fine to add in etc/hosts file and connect but in production
we would have N number of nodes we can't just add the IP and address of the
nodes in etc/hosts every time.
**To Reproduce**
Steps to reproduce the behavior:
1.Install drillbit with zk quorum in 3 nodes with prerequisites showed in
this link : https://drill.apache.org/docs/distributed-mode-prerequisites/
2.use the zk style to connect from your local :
jdbc:drill:zk=<IP>:2181/drill/drill-data-poc
3. once you get a error : No such host is known
4. add the ip and node address in etc/hosts
5. now try to run the same command you will be able to connect.
**Expected behavior**
The Expected behavior is I should just connect to dill bit nodes when I
enter my connection details but its not happening until I add the IP and node
address details in etc/hosts file.
**Desktop (please complete the following information):**
- OS: windows 10 , ubuntu 20.04
- Version Drill 1.19
@cgivre @luocooong @jnturton
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]