Hmaster process automatically shuts down after HBase starts

Source: Internet
Author: User
Tags zookeeper

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.