private static void updateConfKeys ( Configuration conf , String suffix , String nameserviceId ) { String value = conf . get ( FSConstants . DFS_NAMENODE_HTTP_ADDRESS_KEY + suffix + ( nameserviceId . isEmpty ( ) ? "" : ( "." + nameserviceId ) ) ) ; if ( value != null ) { conf . set ( FSConstants . DFS_NAMENODE_HTTP_ADDRESS_KEY , value ) ; } }
For federated and avatar clusters we need update the http key .