hadoop2.2.0升级成hdfs ha后查询报错: hadoop fs -ls /
-ls: java.net.UnknownHostException: testcluster
Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
<property>
<name>dfs.client.failover.proxy.provider.testcluster</name>
<value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
</property>
加上后重启集群正常