In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
1. Yum installs jdk tool version 1.8. When configuring the hbase1.2 version, you need to comment out the following in the hbase-env.sh configuration file:
Export HBASE_MASTER_OPTS= "$HBASE_MASTER_OPTS-XX:PermSize=128m-XX:MaxPermSize=128m"
Export HBASE_REGIONSERVER_OPTS= "$HBASE_REGIONSERVER_OPTS-XX:PermSize=128m-XX:MaxPermSize=128m"
If not commented, 128m related error will be reported when starting the hbase service.
2. Zookeeper service needs to start at least three nodes, and the number of nodes is odd.
Yesterday, we set up a hadoop cluster for the production environment. As a result, after configuring the zookeeper cluster, we started a node and always saw the abnormal state of the service. At one point, I thought it was a service configuration problem, but this problem was stuck for a long time. In fact, this problem is because the number of services started is not more than half of the cluster. If there are five nodes in the cluster, at least three nodes must be started before the cluster will be effective, otherwise the cluster will fail. If you understand the operating mechanism of zookeeper, then there is no problem, so you can not just build the environment, to understand the operating mechanism and principles of the environment.
3. Execute status to check the cluster status after executing the command. / bin/habse shell, and the following message appears:
Hbase > status
Hbase > status' simple'
Hbase > status' summary'
Hbase > status' detailed'
Hbase > status' replication'
Hbase > status' replication', 'source'
Hbase > status' replication', 'sink'
And look at the log in the {HBASE_HOME} / logs directory and observe the following words:
Zookeeper.MetaTableLocator: Failed verification of hbase:meta,1 at address=slave3,16020,15312
Treatment method:
3.1stop hbase cluster service, stop zookeeper cluster service
Delete the version-2 directory under the directory corresponding to the corresponding dataDir parameter configured in the {ZOOKEEPER_HOME} / conf/zoo.cfg configuration file (all zookeeper service nodes)
Start zookeeper cluster service and start hbase cluster service
To be continued.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.