解决hbase错误 Call to localhost/127.0.0.1:16000 failed on connection

发布时间 2023-04-01 15:50:17作者: 耿老师

问题: hbase伪分布式部署下,使用JAVA  API操作,发生错误:Call to localhost/127.0.0.1:16000 failed on connection

Caused by: org.apache.hadoop.hbase.MasterNotRunningException: java.net.ConnectException: Call to localhost/127.0.0.1:16000 failed on connection exception: org.apache.hbase.thirdparty.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: localhost/127.0.0.1:16000

 

 

解决方案:

hbase-site.xml中加一个hbase.master.hostname的配置项