-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java client raises UnknownHostException: can not resolve hbase-master #11
Comments
one solution, although not sure if final is to map the containers IP addresses in /etc/hosts of the docker host
to know the IP address of the container
this is far from optimal, though. |
@diegoquintanav +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The master node started successfully with the following error: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2020-08-20 04:30:22,742 INFO [hbase- master:16000.activeMasterManager ] master.ServerManager : Waiting for region servers count to settle; currently checked in 0, slept for 2707183 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms. 2020-08-20 04:30:24,246 INFO [hbase- master:16000.activeMasterManager ] master.ServerManager : Waiting for region servers count to settle; currently checked in 0, slept for 2708687 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms. 2020-08-20 04:30:25,751 INFO [hbase- master:16000.activeMasterManager ] master.ServerManager : Waiting for region servers count to settle; currently checked in 0, slept for 2710192 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ HBase regionserver has the following error: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2020-08-20 04:25:14,488 WARN [regionserver/hbase-regionserver-1/10.0.16.33:16020] regionserver.HRegionServer : Unable to connect to master. Retrying. Error was: java.net.UnknownHostException : hbase-master +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Any region node can ping the hostname of other regions, but cannot Ping the host of master node |
In my case, After I added hostnames of services to my local(docker host's) etc/hosts like below,
My Java client worked. |
How should I connect a client using the java API?. I'm using this at the moment
Returns
How should I fix this?
I'm using
hbase-client
2.2.5, but version 1.6.0 rises the same problem.The text was updated successfully, but these errors were encountered: