我使用的是CDH6版本,开源版类似。
/etc/hadoop/conf/hdfs-site.xml
hdfs-site.xml中配置了HA
通过以下命令查看两个namenode的状态:
hdfs haadmin -getServiceState namenode202
hdfs haadmin -getServiceState namenode177
例子:判断namenode的状态做distcp操作
我使用的是CDH6版本,开源版类似。
/etc/hadoop/conf/hdfs-site.xml
hdfs-site.xml中配置了HA
通过以下命令查看两个namenode的状态:
hdfs haadmin -getServiceState namenode202
hdfs haadmin -getServiceState namenode177
例子:判断namenode的状态做distcp操作