王宇霄 created HBASE-24299: --------------------------- Summary: Configuring HBase to Use HDFS HA Key: HBASE-24299 URL: https://issues.apache.org/jira/browse/HBASE-24299 Project: HBase Issue Type: Bug Components: conf, hadoop3 Affects Versions: 2.2.4 Environment: OS: Ubuntu 16.04.6 JDK:1.8 Hadoop:3.1.3 or 3.2.1 Zookeeper:3.6.0 HBase:2.2.4
|Hostname|IP|Components| |cluster-hadoop-01|172.18.20.3|NameNode、DataNode、ZooKeeper、HMaster、RegionServer| |cluster-hadoop-02|172.18.20.4|NameNode、`DataNode、Zookeeper、HMaster-Backup、RegionServer| |cluster-hadoop-03|172.18.20.5|DataNode、ZooKeeper、RegionServer| hbase-site.xml: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <configuration> <property> <name>hbase.rootdir</name> <value>hdfs://hdfscluster/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.property.clientPort</name> <value>2181</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>cluster-hadoop-01,cluster-hadoop-02,cluster-hadoop-03</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/data/zookeeper/data</value> </property> </configuration> hdfs-site.xml: ...... <property> <name>dfs.nameservices</name> <value>hdfscluster</value> </property> ....... Reporter: 王宇霄 Attachments: 深度截图_选择区域_20200501201638.png, 深度截图_选择区域_20200501201911.png Problem: HMasters fail to start. Solution: Check for this error in the HMaster log: 2020-05-01 19:30:13,125 ERROR [main] regionserver.HRegionServer: Failed construction RegionServer java.lang.IllegalArgumentException: java.net.UnknownHostException: hdfscluster Hadoop's hdfs-site.xml and core-site.xml files are in your hbase/conf directory -- This message was sent by Atlassian Jira (v8.3.4#803005)