public static void initializeGenericKeys ( Configuration conf , String serviceKey ) { if ( ( serviceKey == null ) || serviceKey . isEmpty ( ) ) { return ; } NameNode . initializeGenericKeys ( conf , serviceKey ) ; DFSUtil . setGenericConf ( conf , serviceKey , AVATARSERVICE_SPECIFIC_KEYS ) ; // adjust meta directory names for this service adjustMetaDirectoryNames ( conf , serviceKey ) ; }
In federation configuration is set for a set of avartanodes namenodes etc which are grouped under a logical nameservice ID . The configuration keys specific to them have suffix set to configured nameserviceId .