title: Fail to start HBase in Pseudo-Distributed mode throws "Failed construction RegionServer"
body: <p>I am trying to run HBase pseudo-distributed in a docker image of ubuntu.</p>
  <p>After start-hbase.sh, HMaster and RegionServer don't run properly.</p>
  <p>Both RegionServer and Master log shows:</p>
  <pre><code>ERROR [main] regionserver.HRegionServer: Failed construction RegionServer
  java.io.IOException: Couldn't create proxy provider class org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider
          at org.apache.hadoop.hdfs.NameNodeProxiesClient.createFailoverProxyProvider(NameNodeProxiesClient.java:261)
          at org.apache.hadoop.hdfs.NameNodeProxiesClient.createFailoverProxyProvider(NameNodeProxiesClient.java:224)
          at org.apache.hadoop.hdfs.NameNodeProxiesClient.createProxyWithClientProtocol(NameNodeProxiesClient.java:134)
          at org.apache.hadoop.hdfs.DFSClient.&lt;init&gt;(DFSClient.java:374)
          at org.apache.hadoop.hdfs.DFSClient.&lt;init&gt;(DFSClient.java:308)
          at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:184)
          at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3414)
          at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:158)
          at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3474)
          at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3442)
          at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:524)
          at org.apache.hadoop.hbase.fs.HFileSystem.&lt;init&gt;(HFileSystem.java:91)
          at org.apache.hadoop.hbase.regionserver.HRegionServer.initializeFileSystem(HRegionServer.java:763)
          at org.apache.hadoop.hbase.regionserver.HRegionServer.&lt;init&gt;(HRegionServer.java:653)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
          at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
          at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:3155)
          at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:63)
          at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:87)
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
          at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)
          at org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:3173)
  </code></pre>
  <p>jps shows:</p>
  <pre><code>31168 HQuorumPeer
  14801 NodeManager
  2049 Jps
  12435 SecondaryNameNode
  12105 NameNode
  14699 ResourceManager
  14141 DataNode
  </code></pre>
  <p>core-site.xml is :</p>
  <pre><code>&lt;configuration&gt;
  &lt;property&gt;
  &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
  &lt;value&gt;/bigdata/hadoop/tmp&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
  &lt;name&gt;fs.default.name&lt;/name&gt;
  &lt;value&gt;hdfs://localhost:9000&lt;/value&gt;
  &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>The hdfs-site.xml shows:</p>
  <pre><code>&lt;configuration&gt;
     &lt;property&gt;
  &lt;name&gt;dfs.replication&lt;/name&gt;
  &lt;value&gt;1&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;dfs.namenode.name.dir&lt;/name&gt;
  &lt;value&gt;/usr/local/hadoop/yarn_data/hdfs/namenode&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;dfs.datanode.data.dir&lt;/name&gt;
  &lt;value&gt;/usr/local/hadoop/yarn_data/hdfs/datanode&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;dfs.namenode.http-address&lt;/name&gt;
  &lt;value&gt;localhost:50070&lt;/value&gt;
  &lt;/property&gt;
  &lt;configuration&gt;
  
      &lt;property&gt;
          &lt;name&gt;dfs.client.failover.proxy.provider.hdfscluster&lt;/name&gt;
          &lt;value&gt;org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>Both of the config files are soft linked from hadoop/etc/hadoop/
  I don't know how to fix this issue base on the log. Thanks for the help!</p>
  <hr />
  <p>Update:
  After fixing the syntax error in hdfs-site.xml pointing out by majid.</p>
  <pre><code>&quot;ERROR [main] regionserver.HRegionServer: Failed construction RegionServer
  java.lang.IllegalArgumentException: java.net.UnknownHostException: hdfs
          at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:448)
          at org.apache.hadoop.hdfs.NameNodeProxiesClient.createProxyWithClientProtocol(NameNodeProxiesClient.java:139)&quot; 
  </code></pre>