将hbase-site.xml中的配置项中的
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:8020/hbase</value>
</property>
改为:
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
因为在core-site.xml中hdfs在运行的端口号为9000 <
property>
<name>fs.defaultFS</name>
<value>hdfs://master:9000</value>
</property>
报错内容:java.net.ConnectException: Call From master/192.168.44.130 to master:8020 failed on connection exception: java.net.ConnectException: Connection refused;