1, the situation described title, HBase started, after the hmaster process started, a few seconds after the automatic shutdown, but the hregionserver process normal operation;
The reason is that the default port number for HDFs is 8020, and I core-site.xml the port in HDFs to 9000.
<property> <name>fs.defaultFS</name> <value>hdfs://hadoop1:9000/ </value></property>
However, we did not specify the port for HDFs, so after HBase started it went to the default port 8020 of HDFs, which led to the error shown in title.
<configuration><!--Specify the path that HBase stores on HDFs--><property><name>hbase.rootdir</name>< Value>hdfs://slaver1/hbase</value></property><!--specify hbase to be distributed-->< Property><name>hbase.cluster.distributed</name><value>true</value></ property><!--Specify the address of ZK, multiple with "," split--><property><name>hbase.zookeeper.quorum</name>< Value>slaver1:2181, Slaver2:2181, Slaver3:2181</value></property></ Configuration>
So when you change it, add 9000:
When configuring the Hbase.rootdir property, explicitly specifying the port for HDFs is 9000, and the configuration file is modified as follows:
<configuration><!--Specify the path that HBase stores on HDFs--><property><name>hbase.rootdir</name>< Value>hdfs://slaver1:9000/hbase</value></property><!--Specifies that HBase is distributed-- <property><name>hbase.cluster.distributed</name><value>true</value>< /property><!--Specify the address of ZK, multiple with "," split--><property><name>hbase.zookeeper.quorum</name>< Value>slaver1:2181, Slaver2:2181, Slaver3:2181</value></property></ Configuration>
Hmaster process automatically shuts down after HBase starts