Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if the input command in hbase shell does not respond and report an error?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "inputting commands in hbase shell without response and reporting errors". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

When you add the stand-alone hbase to the hadoop cluster today, it is normal to start hbase. The execution of status did not respond for a long time. The error was reported after a period of time: ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times.

And access port 60010 of the hbase interface (http://node1:60010/master-status) cannot be opened either:

After viewing the log in daily hbase/logs. The following line appears in the file hbase-hadoop-master-node1.out:

14-10-05 22:25:52 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error Closing socket connection and attempting reconnectjava.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect (Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect (SocketChannelImpl.java:574) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport (ClientCnxnSocketNIO.java:350) at org.apache.zookeeper.ClientCnxn$SendThread.run (ClientCnxn.java:1068) 22:25:53 on 14-10-05 INFO zookeeper.ClientCnxn: Opening socket connection to server node1/10.0.0.101:10086. Will not attempt to authenticate using SASL (unable to locate login configuration)

It turns out to be the configuration in hbase-site.xml under my hbase/conf:

Hbase.rootdir hdfs://node1:10086/hbase

And in hadoop/conf and core-site.xml.

Fs.default.name hdfs://node1:9000

Inconsistent. You must ensure that the addresses and ports in the two files are the same. It would be nice to change it to port 9000.

Execute the command:

[hadoop@node1 bin] $. / hbase shellHBase Shell; enter 'help' for list of supported commands.Type "exit" to leave the HBase ShellVersion 0.94.23, rf42302b28aceaab773b15f234aa8718fff7eea3c, Wed Aug 27 00:54:09 UTC 2014hbase (main): 001 dead 0 > status1 servers, 0 dead, 2.0000 average load

Access to the http://node1:60010 page opens normally.

ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times .

What are the common situations in which the above error occurs?

If the rootdir property is set to hdfs in the configuration file of hbase, this problem will occur if the hbase is inconsistent with the previous RPC protocol of hadoop.

1. You can check whether the hadoop service process is started.

two。 You can also check whether the version between them is the same (for example: check that the version of the hadoop-core file under hbase/lib is hadoop-core-1.0.4.jar, while the root directory of your hadoop is hadoop-core-1.0.3.jar, then it is inconsistent). If it is inconsistent, you can copy hadoop/hadoop-core-*.jar to hbase/lib/.

3. You can also check whether hadoop is started in safe mode (command: hadoop dfsadmin-safemode get to check the safe mode status), and turn it off if it is on (command: hadoop dfsadmin-safemode leave to leave safe mode).

4. Of course, the other is caused by the inconsistency of the system time of the host between the two (for example, the time zone setting is inconsistent, resulting in a large time difference).

Of course, to solve such a problem, you still have to check the relevant logs, starting with the log files, so that you can know what kind of situation it is. For example, the error is also reported above, and after checking the log, I will find that my problem is caused by inconsistent ports.

This is the end of the content of "enter a command in hbase shell that does not respond and report an error". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report