@ Deprecated public static URI translateToOldSchema ( Configuration clusterConf , String nameserviceId ) { String key = FSConstants . DFS_NAMENODE_RPC_ADDRESS_KEY + "." + nameserviceId ; String value = clusterConf . get ( key ) ; if ( value == null ) { throw new IllegalArgumentException ( "Cannot translate to old schema for nameserviceId: " + nameserviceId ) ; } InetSocketAddress address = NetUtils . createSocketAddr ( value ) ; return NameNode . getUri ( address ) ; }
Translates nameserviceId to ZK key in deprecated layout