After hbase HMaster start the process automatically turns off

 

1, describing the situation as shown in the title, after hbase start, HMaster process started, shut down automatically after a few seconds, but HRegionServer process running;

The reason is, hdfs default port number is 8020, and I will be core-site.xml hdfs port modification for 9000.

<property>
    <name>fs.defaultFS</name>
    <value>hdfs://hadoop1:9000/</value>
</property>

But we did not specify hdfs port, so after hbase start it will go to the default port 8020 hdfs, so he caused an error as shown in the problem.

<Configuration> 
<- - hbase specified path stored in the HDFS!> 
<Property> 
<name> hbase.rootdir </ name> 
<value> HDFS: // slaver1 / hbase </ value> 
</ Property> 
< ! - Specifies hbase is distributed -> 
<Property> 
<name> hbase.cluster.distributed </ name> 
<value> to true </ value> 
</ Property> 
<-! zk specified address, a plurality of with "," split -> 
<Property> 
<name> hbase.zookeeper.quorum </ name> 
<value> slaver1: 2181, slaver2: 2181, slaver3: 2181 </ value> 
</ Property> 

</ Configuration>
 

So you can modify the time plus 9000:

Hdfs explicitly specified in configuration properties hbase.rootdir port 9000, modify the configuration file as follows:

<Configuration> 
<- - hbase specified path stored in the HDFS!> 
<Property> 
<name> hbase.rootdir </ name> 
<value> HDFS: // slaver1: 9000 / hbase </ value> 
</ Property > 
<! - Specifies the hbase is distributed -> 
<Property> 
<name> hbase.cluster.distributed </ name> 
<value> to true </ value> 
</ Property> 
<! - zk specified address, a plurality of "," split -> 
<Property> 
<name> hbase.zookeeper.quorum </ name> 
<value> slaver1: 2181, slaver2: 2181, slaver3: 2181 </ value> 
</ Property> 

</ Configuration >
 

1, describing the situation as shown in the title, after hbase start, HMaster process started, shut down automatically after a few seconds, but HRegionServer process running;

The reason is, hdfs default port number is 8020, and I will be core-site.xml hdfs port modification for 9000.

<property>
    <name>fs.defaultFS</name>
    <value>hdfs://hadoop1:9000/</value>
</property>

But we did not specify hdfs port, so after hbase start it will go to the default port 8020 hdfs, so he caused an error as shown in the problem.

<Configuration> 
<- - hbase specified path stored in the HDFS!> 
<Property> 
<name> hbase.rootdir </ name> 
<value> HDFS: // slaver1 / hbase </ value> 
</ Property> 
< ! - Specifies hbase is distributed -> 
<Property> 
<name> hbase.cluster.distributed </ name> 
<value> to true </ value> 
</ Property> 
<-! zk specified address, a plurality of with "," split -> 
<Property> 
<name> hbase.zookeeper.quorum </ name> 
<value> slaver1: 2181, slaver2: 2181, slaver3: 2181 </ value> 
</ Property> 

</ Configuration>
 

So you can modify the time plus 9000:

Hdfs explicitly specified in configuration properties hbase.rootdir port 9000, modify the configuration file as follows:

<Configuration> 
<- - hbase specified path stored in the HDFS!> 
<Property> 
<name> hbase.rootdir </ name> 
<value> HDFS: // slaver1: 9000 / hbase </ value> 
</ Property > 
<! - Specifies the hbase is distributed -> 
<Property> 
<name> hbase.cluster.distributed </ name> 
<value> to true </ value> 
</ Property> 
<! - zk specified address, a plurality of "," split -> 
<Property> 
<name> hbase.zookeeper.quorum </ name> 
<value> slaver1: 2181, slaver2: 2181, slaver3: 2181 </ value> 
</ Property> 

</ Configuration >
 

Guess you like

Origin www.cnblogs.com/liuys635/p/11348928.html