老师,测试HBase数据源的时候出现了连接不上的情况:
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_231]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_231]
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
我在本机的hosts也配置了:
192.168.100.200 hbase-regionserver-1
192.168.100.200 hbase-regionserver-2
192.168.100.200 hbase-regionserver-3
192.168.100.200 hbase-master
192.168.100.200 namenode
192.168.100.200 datanode1
192.168.100.200 datanode2
192.168.100.200 datanode3
192.168.100.200 hive-metastore
192.168.100.200 zoo1
192.168.100.200 zoo2
192.168.100.200 zoo3