HBase Environment build 60010 port inaccessible Problem solution

Source: Internet
Author: User
Tags safe mode

I. Environment configuration Instructions
First, you need to build a Hadoop environment
(I have information about the Hadoop environment as follows:
version:1.1.2
Mode: pseudo-distribution mode
)
Version of HBase: 0.94.2
JDK Version: 1.6
Linux version: Centos 6.4
Second, the cause of the problem and solutions
When the HBase environment is set up, the corresponding processes are started and the shell is able to go in.
However, the browser accesses port 60010 to view HBase-related information and has been unable to connect.

Reason:
View the Logs folder under the HBase folder (I am/usr/local/hbase) to view the appropriate log files (first start hbase it is best to empty the contents under this folder, to ensure that the log files are up to date)
View the corresponding log file (Hbase-root-master-hadoop.log) Discovery:
....
2015-07-16 07:40:45,872 INFO org.apache.hadoop.hbase.master.SplitLogManager:found 0 orphan tasks and 0 rescan nodes
2015-07-16 07:40:45,875 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:40:55,882 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:41:05,890 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:41:15,896 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:41:25,907 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:41:35,922 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:41:45,927 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:41:55,932 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:42:05,938 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:42:15,948 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:42:25,956 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:42:35,960 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:42:45,964 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:42:55,970 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:43:05,975 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:43:15,981 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:43:25,990 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:43:36,001 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:43:46,010 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:43:56,021 INFO org.apache.hadoop.hbase.util.FSUtils:Waiting for DFS to exit Safe mode ...
2015-07-16 07:44:05,878 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine:Failed to start master
Java.lang.RuntimeException:Master not initialized after seconds
...

This error is caused by the SafeMode (Safe mode) of Hadoop.
Solution:
Execute the following command
Hadoop Dfsadmin-safemode Leave
(Note adding the bin subdirectory of the Hadoop directory to path to modify the/etc/profile file)
Restart HBase (start-hbase.sh)

Access to port 60010 again succeeds.
Three, thinking
problems when configuring your environment it's not scary to learn to parse the cause of the error from log
and slowly analyze the possible causes to find a solution
so you can learn more from it.

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.